From b92c8318576b9ad21ed290e4fa5977245c7d0f95 Mon Sep 17 00:00:00 2001 From: magumagu9 Date: Thu, 25 Dec 2008 22:05:22 +0000 Subject: [PATCH] Reverting r1650. I don't think this change is the right approach: it actually ends up *misaligning* the stack for the normal ABI_CallFunctionC and friends. I'll try to help come up with the correct fix; look for another commit in a bit. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1662 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Common/Src/ABI.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/Source/Core/Common/Src/ABI.cpp b/Source/Core/Common/Src/ABI.cpp index a481663eaf..941a1e9ff8 100644 --- a/Source/Core/Common/Src/ABI.cpp +++ b/Source/Core/Common/Src/ABI.cpp @@ -103,7 +103,6 @@ void XEmitter::ABI_CallFunctionAC(void *func, const Gen::OpArg &arg1, u32 param2 } void XEmitter::ABI_PushAllCalleeSavedRegsAndAdjustStack() { - ABI_AlignStack(0); // Note: 4 * 4 = 16 bytes, so alignment is preserved. PUSH(EBP); PUSH(EBX); @@ -116,7 +115,6 @@ void XEmitter::ABI_PopAllCalleeSavedRegsAndAdjustStack() { POP(ESI); POP(EBX); POP(EBP); - ABI_RestoreStack(0); } unsigned int XEmitter::ABI_GetAlignedFrameSize(unsigned int frameSize) {