mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-08 12:06:24 +02:00
Merge pull request #5897 from unknownbrackets/jit-minor
Skip jals when replacing funcs
This commit is contained in:
commit
c6da68734f
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