MMU: Fix bit width for 32bit MMIO reads
Some checks failed
Build check / build (push) Waiting to run
Generate translation template / generate-pot (push) Failing after 31s

This resolves the ghost input issue in N64 virtual console
This commit is contained in:
Exzap 2025-06-28 21:43:40 +02:00
parent 7db2b77983
commit 13ccf9a160
3 changed files with 2 additions and 3 deletions

View file

@ -500,7 +500,7 @@ namespace MMU
// todo - instead of passing the physical address to Read/WriteMMIO we should pass an interface id and a relative address? This would allow remapping the hardware address (tho we can just unregister + register at different addresses)
uint16 ReadMMIO_32(PAddr address)
uint32 ReadMMIO_32(PAddr address)
{
cemu_assert_debug((address & 0x3) == 0);
auto itr = g_mmioHandlerR32->find(address);

View file

@ -261,7 +261,7 @@ namespace MMU
void WriteMMIO_32(PAddr address, uint32 value);
void WriteMMIO_16(PAddr address, uint16 value);
uint16 ReadMMIO_32(PAddr address);
uint32 ReadMMIO_32(PAddr address);
uint16 ReadMMIO_16(PAddr address);
}

View file

@ -87,7 +87,6 @@ namespace HW_SI
HWREG::SICOMCSR SI_COMCSR_R32(PAddr addr)
{
//cemuLog_logDebug(LogType::Force, "Read SICOMCSR");
return g_si.registerState.sicomcsr;
}