mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-11 15:13:37 +02:00
x86jit: Correct downcount on replacement in IR.
This commit is contained in:
@@ -232,8 +232,10 @@ void X64JitBackend::CompIR_System(IRInst inst) {
|
||||
ABI_CallFunction(GetReplacementFunc(inst.constant)->replaceFunc);
|
||||
WriteDebugProfilerStatus(IRProfilerStatus::IN_JIT);
|
||||
LoadStaticRegisters();
|
||||
//SUB(32, R(DOWNCOUNTREG), R(DOWNCOUNTREG), R(EAX));
|
||||
SUB(32, MDisp(CTXREG, downcountOffset), R(EAX));
|
||||
if (jo.downcountInRegister)
|
||||
SUB(32, R(DOWNCOUNTREG), R(EAX));
|
||||
else
|
||||
SUB(32, MDisp(CTXREG, downcountOffset), R(EAX));
|
||||
break;
|
||||
|
||||
case IROp::Break:
|
||||
|
||||
Reference in New Issue
Block a user