From dc86bac83d865ebc1b9a520791b831f6799fe87c Mon Sep 17 00:00:00 2001 From: RSDuck Date: Sun, 26 Apr 2020 16:17:16 +0200 Subject: [PATCH] hopefully fix stack handling for linux --- src/ARMJIT_x64/ARMJIT_Linkage.s | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ARMJIT_x64/ARMJIT_Linkage.s b/src/ARMJIT_x64/ARMJIT_Linkage.s index dbbb0240..0a84df07 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