From d8ba450d9c7ee379318a49b219c883bed7e07e4a Mon Sep 17 00:00:00 2001 From: "Jake.Stine" Date: Sat, 24 Oct 2009 23:36:40 +0000 Subject: [PATCH] Aligned Stack for sVU in linux/gcc (missed the .S file in the last commit). git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2073 96395faa-99c1-11dd-bbfe-3dabce05a288 --- pcsx2/x86/aVUzerorec.S | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/pcsx2/x86/aVUzerorec.S b/pcsx2/x86/aVUzerorec.S index 07bcd6982f..4d548f339b 100644 --- a/pcsx2/x86/aVUzerorec.S +++ b/pcsx2/x86/aVUzerorec.S @@ -24,10 +24,10 @@ SuperVUExecuteProgram: mov s_vu1esi, esi mov s_vuedi, edi mov s_vuebx, ebx -#ifdef PCSX2_DEBUG + mov s_vu1esp, esp -#endif - + and esp, -16 // align stack for GCC compilance + ldmxcsr g_sseVUMXCSR mov dword ptr s_writeQ, 0xffffffff mov dword ptr s_writeP, 0xffffffff @@ -41,10 +41,8 @@ SuperVUEndProgram: mov edi, s_vuedi mov ebx, s_vuebx -#ifdef PCSX2_DEBUG - sub s_vu1esp, esp -#endif - + mov esp, s_vu1esp + call SuperVUCleanupProgram jmp [s_callstack] // so returns correctly