mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-05 07:39:17 +00:00
Merge pull request #899 from FioraAeterna/checkram
JIT: fix RAM check in load-from-constant-address
This commit is contained in:
commit
1a6268e6cf
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
// MMIO handler and generate the code to load using the handler.
|
||||||
// 3. Otherwise, just generate a call to Memory::Read_* with the
|
// 3. Otherwise, just generate a call to Memory::Read_* with the
|
||||||
// address hardcoded.
|
// address hardcoded.
|
||||||
if ((address & mem_mask) == 0)
|
if (Memory::IsRAMAddress(address))
|
||||||
{
|
{
|
||||||
UnsafeLoadToReg(reg_value, opAddress, accessSize, offset, signExtend);
|
UnsafeLoadToReg(reg_value, opAddress, accessSize, offset, signExtend);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue