mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 16:19:28 +01:00
Merge pull request #8886 from JosJuice/stack-check-instruction
PatchEngine: Attempt to fix crash in IsStackSane
This commit is contained in:
commit
3101d957b6
@ -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()
|
||||
|
@ -423,8 +423,7 @@ TryReadInstResult TryReadInstruction(u32 address)
|
||||
|
||||
u32 HostRead_Instruction(const u32 address)
|
||||
{
|
||||
UGeckoInstruction inst = HostRead_U32(address);
|
||||
return inst.hex;
|
||||
return ReadFromHardware<XCheckTLBFlag::OpcodeNoException, u32>(address);
|
||||
}
|
||||
|
||||
static void Memcheck(u32 address, u32 var, bool write, size_t size)
|
||||
|
Loading…
x
Reference in New Issue
Block a user