mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-17 16:30:30 +02:00
Followup to #16205, fix one more instance of the problem.
This commit is contained in:
1 parent
e0e29a1556
commit
26f6afbfa7
1 file changed
+3
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user