From f2781c58b7626a690f03933ddacf59607bb307b8 Mon Sep 17 00:00:00 2001 From: Merry Date: Sat, 19 Nov 2022 20:07:10 +0000 Subject: [PATCH] a64_emit_x64_memory: Correct bug in GenMemory128Accessors, misaligned stack --- src/dynarmic/backend/x64/a64_emit_x64_memory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dynarmic/backend/x64/a64_emit_x64_memory.cpp b/src/dynarmic/backend/x64/a64_emit_x64_memory.cpp index 47bcc84e..5b6ab34d 100644 --- a/src/dynarmic/backend/x64/a64_emit_x64_memory.cpp +++ b/src/dynarmic/backend/x64/a64_emit_x64_memory.cpp @@ -87,7 +87,7 @@ void A64EmitX64::GenMemory128Accessors() { code.movaps(xword[code.ABI_PARAM3], xmm1); code.movaps(xword[code.ABI_PARAM4], xmm2); Devirtualize<&A64::UserCallbacks::MemoryWriteExclusive128>(conf.callbacks).EmitCall(code); - code.add(rsp, 8 + 16 + ABI_SHADOW_SPACE); + code.add(rsp, 8 + 32 + ABI_SHADOW_SPACE); #else code.sub(rsp, 8); if (code.HasHostFeature(HostFeature::SSE41)) {