aboutsummaryrefslogtreecommitdiff
path: root/src/ARMJIT_x64
diff options
context:
space:
mode:
authorRSDuck <RSDuck@users.noreply.github.com>2021-03-17 16:44:54 +0100
committerRSDuck <RSDuck@users.noreply.github.com>2021-03-17 16:44:54 +0100
commitf060162dacb512ee88eb0bf9f504207c5f37fbd4 (patch)
tree5aeadd010f396105d9dc8c33b7e75ccc96c40f10 /src/ARMJIT_x64
parentfbe691a673333ca44de1e18eceb8443c308adc69 (diff)
attempt at fixing #1037
Diffstat (limited to 'src/ARMJIT_x64')
-rw-r--r--src/ARMJIT_x64/ARMJIT_Compiler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ARMJIT_x64/ARMJIT_Compiler.cpp b/src/ARMJIT_x64/ARMJIT_Compiler.cpp
index 2eb9c17..5ab8c6a 100644
--- a/src/ARMJIT_x64/ARMJIT_Compiler.cpp
+++ b/src/ARMJIT_x64/ARMJIT_Compiler.cpp
@@ -467,14 +467,14 @@ void Compiler::SaveCPSR(bool flagClean)
void Compiler::LoadReg(int reg, X64Reg nativeReg)
{
if (reg != 15)
- MOV(32, R(nativeReg), MDisp(RCPU, offsetof(ARM, R[reg])));
+ MOV(32, R(nativeReg), MDisp(RCPU, offsetof(ARM, R) + reg*4));
else
MOV(32, R(nativeReg), Imm32(R15));
}
void Compiler::SaveReg(int reg, X64Reg nativeReg)
{
- MOV(32, MDisp(RCPU, offsetof(ARM, R[reg])), R(nativeReg));
+ MOV(32, MDisp(RCPU, offsetof(ARM, R) + reg*4), R(nativeReg));
}
// invalidates RSCRATCH and RSCRATCH3