mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-16 02:59:49 +01:00
jit-ir: Fix replacement hooks.
This commit is contained in:
1 parent
f6d245f3c4
commit
ccb8f8d77e
2 files changed
+3
-1
No files matched your search
@@ -384,7 +384,7 @@ u32 IRInterpret(MIPSState *mips, const IRInst *inst, const u32 *constPool, int c
|
||||
const ReplacementTableEntry *f = GetReplacementFunc(funcIndex);
|
||||
int cycles = f->replaceFunc();
|
||||
mips->downcount -= cycles;
|
||||
return mips->r[MIPS_REG_RA];
|
||||
break;
|
||||
}
|
||||
|
||||
case IROp::Break:
|
||||
|
||||
@@ -340,6 +340,8 @@ void IRJit::Comp_ReplacementFunc(MIPSOpcode op) {
|
||||
MIPSCompileOp(Memory::Read_Instruction(GetCompilerPC(), true), this);
|
||||
} else {
|
||||
ApplyRoundingMode();
|
||||
ir.Write(IROp::Downcount, 0, js.downcountAmount & 0xFF, js.downcountAmount >> 8);
|
||||
ir.Write(IROp::ExitToReg, MIPS_REG_RA, 0, 0);
|
||||
js.compiling = false;
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user