Merge pull request #1448 from skidau/mmio-read32

Fixed the endianess of the 32bit MMIO reads.
This commit is contained in:
Ryan Houdek 2014-11-02 09:36:43 -06:00
commit 2b69d76e88
1 changed files with 2 additions and 2 deletions

View File

@ -146,11 +146,11 @@ void RegisterMMIO(MMIO::Mapping* mmio, u32 base)
for (int i = 0; i < 0x1000; i += 4)
{
mmio->Register(base | i,
MMIO::ReadToLarger<u16>(mmio, base | i, 0),
MMIO::ReadToLarger<u16>(mmio, base | i, 16),
MMIO::InvalidWrite<u16>()
);
mmio->Register(base | (i + 2),
MMIO::ReadToLarger<u16>(mmio, base | i, 16),
MMIO::ReadToLarger<u16>(mmio, base | i, 0),
MMIO::InvalidWrite<u16>()
);
}