aboutsummaryrefslogtreecommitdiff
path: root/src/ARMJIT_x64/ARMJIT_Branch.cpp
diff options
context:
space:
mode:
authorRSDuck <RSDuck@users.noreply.github.com>2021-06-29 22:25:43 +0200
committerRSDuck <RSDuck@users.noreply.github.com>2021-06-29 22:25:43 +0200
commitaa430608e70fe6857ef7a9d63b59525b5f261f18 (patch)
tree67150e58c2e47e4026222dbe454ffc49a644842b /src/ARMJIT_x64/ARMJIT_Branch.cpp
parentdd53b01f761a6801e7922c993e81048f2c6d7c0a (diff)
support allocating more registers for aarch64 JIT
also some minor fixes for the x64 JIT as well
Diffstat (limited to 'src/ARMJIT_x64/ARMJIT_Branch.cpp')
-rw-r--r--src/ARMJIT_x64/ARMJIT_Branch.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ARMJIT_x64/ARMJIT_Branch.cpp b/src/ARMJIT_x64/ARMJIT_Branch.cpp
index 8ca3542..a89cf99 100644
--- a/src/ARMJIT_x64/ARMJIT_Branch.cpp
+++ b/src/ARMJIT_x64/ARMJIT_Branch.cpp
@@ -165,7 +165,7 @@ void Compiler::Comp_JumpTo(Gen::X64Reg addr, bool restoreCPSR)
bool cpsrDirty = CPSRDirty;
SaveCPSR();
- PushRegs(restoreCPSR);
+ PushRegs(restoreCPSR, true);
MOV(64, R(ABI_PARAM1), R(RCPU));
MOV(32, R(ABI_PARAM2), R(addr));
@@ -178,7 +178,7 @@ void Compiler::Comp_JumpTo(Gen::X64Reg addr, bool restoreCPSR)
else
CALL((void*)&ARMv4JumpToTrampoline);
- PopRegs(restoreCPSR);
+ PopRegs(restoreCPSR, true);
LoadCPSR();
// in case this instruction is skipped