aboutsummaryrefslogtreecommitdiff
path: root/src/ARMJIT_x64
diff options
context:
space:
mode:
authorRSDuck <rsduck@users.noreply.github.com>2020-04-26 16:17:16 +0200
committerRSDuck <rsduck@users.noreply.github.com>2020-04-26 16:17:16 +0200
commit59c8d3976562ec3ed057f21116b76a3a532bc4d1 (patch)
tree00d3f7bab8074a5e10418ee4d5afcb3094fbad91 /src/ARMJIT_x64
parenta9dd6e30adc590e11e3a076c1245f1b0b48f27f6 (diff)
hopefully fix stack handling for linux
Diffstat (limited to 'src/ARMJIT_x64')
-rw-r--r--src/ARMJIT_x64/ARMJIT_Linkage.s4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ARMJIT_x64/ARMJIT_Linkage.s b/src/ARMJIT_x64/ARMJIT_Linkage.s
index dbbb024..0a84df0 100644
--- a/src/ARMJIT_x64/ARMJIT_Linkage.s
+++ b/src/ARMJIT_x64/ARMJIT_Linkage.s
@@ -44,6 +44,8 @@ ARM_Dispatch:
#ifdef WIN64
sub rsp, 0x28
+#else
+ sub rsp, 0x8
#endif
mov RCPU, ARG1_REG64
mov RCPSR, [RCPU + ARM_CPSR_offset]
@@ -58,6 +60,8 @@ ARM_Ret:
#ifdef WIN64
add rsp, 0x28
+#else
+ add rsp, 0x8
#endif
pop rbp