mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 13:30:02 +00:00
Followup to #16205, fix one more instance of the problem.
This commit is contained in:
parent
e0e29a1556
commit
26f6afbfa7
@ -566,6 +566,7 @@ void ArmJit::Comp_ReplacementFunc(MIPSOpcode op)
|
||||
}
|
||||
} else if (entry->replaceFunc) {
|
||||
FlushAll();
|
||||
SaveDowncount();
|
||||
RestoreRoundingMode();
|
||||
gpr.SetRegImm(SCRATCHREG1, GetCompilerPC());
|
||||
MovToPC(SCRATCHREG1);
|
||||
@ -582,9 +583,11 @@ void ArmJit::Comp_ReplacementFunc(MIPSOpcode op)
|
||||
if (entry->flags & (REPFLAG_HOOKENTER | REPFLAG_HOOKEXIT)) {
|
||||
// Compile the original instruction at this address. We ignore cycles for hooks.
|
||||
ApplyRoundingMode();
|
||||
RestoreDowncount();
|
||||
MIPSCompileOp(Memory::Read_Instruction(GetCompilerPC(), true), this);
|
||||
} else {
|
||||
ApplyRoundingMode();
|
||||
RestoreDowncount();
|
||||
LDR(R1, CTXREG, MIPS_REG_RA * 4);
|
||||
WriteDownCountR(R0);
|
||||
WriteExitDestInR(R1);
|
||||
|
Loading…
Reference in New Issue
Block a user