From c9b918d3051891b2a50c022a8c1666f5dc49b727 Mon Sep 17 00:00:00 2001 From: RSDuck Date: Sat, 24 Jul 2021 04:45:33 +0200 Subject: [PATCH] fix last commit for aarch64 --- src/ARMJIT_A64/ARMJIT_LoadStore.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/ARMJIT_A64/ARMJIT_LoadStore.cpp b/src/ARMJIT_A64/ARMJIT_LoadStore.cpp index ba1bf00c..8aa14099 100644 --- a/src/ARMJIT_A64/ARMJIT_LoadStore.cpp +++ b/src/ARMJIT_A64/ARMJIT_LoadStore.cpp @@ -827,12 +827,15 @@ void Compiler::T_Comp_PUSH_POP() } ARM64Reg sp = MapReg(13); - s32 offset = Comp_MemAccessBlock(13, regs, !load, !load, !load, false); + s32 offset = Comp_MemAccessBlock(13, regs, !load, !load, !load, false, false); - if (offset > 0) + if (offset) + { + if (offset > 0) ADD(sp, sp, offset); else SUB(sp, sp, -offset); + } } void Compiler::T_Comp_LDMIA_STMIA()