Merge pull request #899 from FioraAeterna/checkram

JIT: fix RAM check in load-from-constant-address
This commit is contained in:
Ryan Houdek 2014-08-30 20:49:33 -05:00
commit 1a6268e6cf
1 changed files with 1 additions and 1 deletions

View File

@ -297,7 +297,7 @@ void EmuCodeBlock::SafeLoadToReg(X64Reg reg_value, const Gen::OpArg & opAddress,
// MMIO handler and generate the code to load using the handler.
// 3. Otherwise, just generate a call to Memory::Read_* with the
// address hardcoded.
if ((address & mem_mask) == 0)
if (Memory::IsRAMAddress(address))
{
UnsafeLoadToReg(reg_value, opAddress, accessSize, offset, signExtend);
}