mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-18 20:04:31 +01:00
Skip jals when replacing funcs.
Improves performance in God Eater (when replacements enabled.)
This commit is contained in:
1 parent
aeb1ecdcc5
commit
ddd6e3024d
1 file changed
+9
-1
@@ -453,7 +453,15 @@ bool Jit::ReplaceJalTo(u32 dest) {
|
||||
blocks.ProxyBlock(js.blockStart, dest, 4, GetCodePtr());
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
gpr.SetImm(MIPS_REG_RA, js.compilerPC + 8);
|
||||
CompileDelaySlot(DELAYSLOT_NICE);
|
||||
FlushAll();
|
||||
ABI_CallFunction(entry->replaceFunc);
|
||||
SUB(32, M(¤tMIPS->downcount), R(EAX));
|
||||
js.downcountAmount = 0; // we just subtracted most of it
|
||||
js.compilerPC += 4;
|
||||
js.compiling = true;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user