mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-04 23:29:17 +00:00
PatchEngine: Attempt to fix crash in IsStackSane
HostIsInstructionRAMAddress uses XCheckTLBFlag::OpcodeNoException, so we should also use XCheckTLBFlag::OpcodeNoException when reading, to ensure that we use the IBAT (as opposed to the DBAT) for both.
This commit is contained in:
parent
0bc7dcd172
commit
364ef76ba1
2 changed files with 3 additions and 3 deletions
|
@ -231,7 +231,8 @@ static bool IsStackSane()
|
|||
|
||||
// Check the link register makes sense (that it points to a valid IBAT address)
|
||||
const u32 address = PowerPC::HostRead_U32(next_SP + 4);
|
||||
return PowerPC::HostIsInstructionRAMAddress(address) && 0 != PowerPC::HostRead_U32(address);
|
||||
return PowerPC::HostIsInstructionRAMAddress(address) &&
|
||||
0 != PowerPC::HostRead_Instruction(address);
|
||||
}
|
||||
|
||||
bool ApplyFramePatches()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue