From ab99ae6951ff84fdf33d40480f8a61b36dd46020 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Thu, 4 Jan 2024 11:03:46 +0100 Subject: [ARM64_DYNAREC] Fixed CALLRET optim when unsync occur, should help stability --- src/dynarec/arm64/dynarec_arm64_helper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/dynarec') diff --git a/src/dynarec/arm64/dynarec_arm64_helper.c b/src/dynarec/arm64/dynarec_arm64_helper.c index c9fd9b3f..af0c595e 100644 --- a/src/dynarec/arm64/dynarec_arm64_helper.c +++ b/src/dynarec/arm64/dynarec_arm64_helper.c @@ -624,7 +624,7 @@ void ret_to_epilog(dynarec_arm_t* dyn, int ninst, rex_t rex) CBNZx(x6, 2*4); BLR(x2); // not the correct return address, regular jump, but purge the stack first, it's unsync now... - SUBx_U12(xSP, xSavedSP, 0); + SUBx_U12(xSP, xSavedSP, 16); } uintptr_t tbl = getJumpTable64(); NOTEST(x2); @@ -667,7 +667,7 @@ void retn_to_epilog(dynarec_arm_t* dyn, int ninst, rex_t rex, int n) CBNZx(x6, 2*4); BLR(x2); // not the correct return address, regular jump - SUBx_U12(xSP, xSavedSP, 0); + SUBx_U12(xSP, xSavedSP, 16); } uintptr_t tbl = getJumpTable64(); NOTEST(x2); -- cgit 1.4.1