aboutsummaryrefslogtreecommitdiff
path: root/src/ARMJIT_A64
diff options
context:
space:
mode:
authorRSDuck <RSDuck@users.noreply.github.com>2021-07-24 04:45:33 +0200
committerRSDuck <RSDuck@users.noreply.github.com>2021-07-24 04:45:33 +0200
commitc9b918d3051891b2a50c022a8c1666f5dc49b727 (patch)
tree9cacc268f063d919af23437429d7e4f4e1b6f18b /src/ARMJIT_A64
parentc2152c8f74eee6cb9d60579f264b220a498c5220 (diff)
fix last commit for aarch64
Diffstat (limited to 'src/ARMJIT_A64')
-rw-r--r--src/ARMJIT_A64/ARMJIT_LoadStore.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ARMJIT_A64/ARMJIT_LoadStore.cpp b/src/ARMJIT_A64/ARMJIT_LoadStore.cpp
index ba1bf00..8aa1409 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()