HLE: Oops, make sure we don't deadbeef mips calls.

See #12752.
This commit is contained in:
Unknown W. Brackets 2020-03-25 17:11:02 -07:00
parent 328b5c9788
commit 8b6d2f9025

View File

@ -525,12 +525,13 @@ void HLEReturnFromMipsCall() {
}
// Alright, we have another to call.
hleSkipDeadbeef();
currentMIPS->pc = stackData->func;
DEBUG_LOG(HLE, "Executing next HLE mips call at %08x, sp=%08x", currentMIPS->pc, sp);
currentMIPS->r[MIPS_REG_RA] = HLEMipsCallReturnAddress();
for (int i = 0; i < (int)stackData->argc; i++) {
currentMIPS->r[MIPS_REG_A0 + i] = Memory::Read_U32(sp + sizeof(HLEMipsCallStack) + i * sizeof(u32));
}
DEBUG_LOG(HLE, "Executing next HLE mips call at %08x, sp=%08x", currentMIPS->pc, sp);
}
const static u32 deadbeefRegs[12] = {0xDEADBEEF, 0xDEADBEEF, 0xDEADBEEF, 0xDEADBEEF, 0xDEADBEEF, 0xDEADBEEF, 0xDEADBEEF, 0xDEADBEEF, 0xDEADBEEF, 0xDEADBEEF, 0xDEADBEEF, 0xDEADBEEF};