From 52d73c2f3e5af389d315cb3cae244fa4557eed0d Mon Sep 17 00:00:00 2001 From: SSimco <37044560+SSimco@users.noreply.github.com> Date: Sun, 1 Sep 2024 09:42:45 +0300 Subject: [PATCH] Fix count cycles macro for count cycles > 4095 --- .../HW/Espresso/Recompiler/BackendAArch64/BackendAArch64.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cafe/HW/Espresso/Recompiler/BackendAArch64/BackendAArch64.cpp b/src/Cafe/HW/Espresso/Recompiler/BackendAArch64/BackendAArch64.cpp index 7b12d28a..89044d49 100644 --- a/src/Cafe/HW/Espresso/Recompiler/BackendAArch64/BackendAArch64.cpp +++ b/src/Cafe/HW/Espresso/Recompiler/BackendAArch64/BackendAArch64.cpp @@ -714,7 +714,7 @@ bool AArch64GenContext_t::macro(IMLInstruction* imlInstruction) uint32 cycleCount = imlInstruction->op_macro.param; AdrImm adrCycles = AdrImm(hCPU, offsetof(PPCInterpreter_t, remainingCycles)); ldr(tempWReg, adrCycles); - sub(tempWReg, tempWReg, cycleCount); + sub_imm(tempWReg, tempWReg, cycleCount, temp2WReg); str(tempWReg, adrCycles); return true; }