Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #285 from delroth/movbe
WriteToConstRamAddress: support swap on 32 bit too
  • Loading branch information
delroth committed Apr 21, 2014
2 parents 78b3eb1 + 257b113 commit 8e38b1e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Source/Core/Core/PowerPC/JitCommon/Jit_Util.cpp
Expand Up @@ -547,7 +547,10 @@ void EmuCodeBlock::WriteToConstRamAddress(int accessSize, Gen::X64Reg arg, u32 a
else
MOV(accessSize, MDisp(RBX, address & 0x3FFFFFFF), R(arg));
#else
MOV(accessSize, M((void*)(Memory::base + (address & Memory::MEMVIEW32_MASK))), R(arg));
if (swap)
SwapAndStore(accessSize, M((void*)(Memory::base + (address & Memory::MEMVIEW32_MASK))), arg);
else
MOV(accessSize, M((void*)(Memory::base + (address & Memory::MEMVIEW32_MASK))), R(arg));
#endif
}

Expand Down

0 comments on commit 8e38b1e

Please sign in to comment.