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
This commit is contained in:
Jake.Stine 2009-10-24 23:36:40 +00:00
parent b96ab5621f
commit d8ba450d9c
1 changed files with 5 additions and 7 deletions

View File

@ -24,10 +24,10 @@ SuperVUExecuteProgram:
mov s_vu1esi, esi mov s_vu1esi, esi
mov s_vuedi, edi mov s_vuedi, edi
mov s_vuebx, ebx mov s_vuebx, ebx
#ifdef PCSX2_DEBUG
mov s_vu1esp, esp mov s_vu1esp, esp
#endif and esp, -16 // align stack for GCC compilance
ldmxcsr g_sseVUMXCSR ldmxcsr g_sseVUMXCSR
mov dword ptr s_writeQ, 0xffffffff mov dword ptr s_writeQ, 0xffffffff
mov dword ptr s_writeP, 0xffffffff mov dword ptr s_writeP, 0xffffffff
@ -41,10 +41,8 @@ SuperVUEndProgram:
mov edi, s_vuedi mov edi, s_vuedi
mov ebx, s_vuebx mov ebx, s_vuebx
#ifdef PCSX2_DEBUG mov esp, s_vu1esp
sub s_vu1esp, esp
#endif
call SuperVUCleanupProgram call SuperVUCleanupProgram
jmp [s_callstack] // so returns correctly jmp [s_callstack] // so returns correctly