diff options
| author | Pierre Bourdon <delroth@gmail.com> | 2014-03-26 20:18:04 +0100 |
|---|---|---|
| committer | Pierre Bourdon <delroth@gmail.com> | 2014-03-26 20:18:04 +0100 |
| commit | f6a343df792e9ffdc607e50f446cfdcfc3fa8cad (patch) | |
| tree | 61fb71adadae3413f7f8ebede77dac807fbe9319 /Source/Core/Common | |
| parent | ea6b37cb750e8cefd60a18a9ed1b5aa0dd4adf8c (diff) | |
| parent | ca4e0495c03b72cb2e2cf47f093db54409cb3937 (diff) | |
Merge pull request #211 from magumagu/win32-jit-fixes
Win32 jit fixes
Diffstat (limited to 'Source/Core/Common')
| -rw-r--r-- | Source/Core/Common/x64ABI.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/Common/x64ABI.cpp b/Source/Core/Common/x64ABI.cpp index 525ecb538b..5a09201825 100644 --- a/Source/Core/Common/x64ABI.cpp +++ b/Source/Core/Common/x64ABI.cpp @@ -92,7 +92,7 @@ void XEmitter::ABI_PushRegistersAndAdjustStack(u32 mask, bool noProlog) { if (mask & (1 << (16 + x))) { - MOVAPD(MDisp(RSP, offset), (X64Reg) x); + MOVUPD(MDisp(RSP, offset), (X64Reg) x); offset += 16; } } @@ -114,7 +114,7 @@ void XEmitter::ABI_PopRegistersAndAdjustStack(u32 mask, bool noProlog) { if (mask & (1 << (16 + x))) { - MOVAPD((X64Reg) x, MDisp(RSP, size)); + MOVUPD((X64Reg) x, MDisp(RSP, size)); size += 16; } } @@ -213,11 +213,11 @@ void XEmitter::ABI_CallFunctionCCCP(void *func, u32 param1, u32 param2,u32 param } void XEmitter::ABI_CallFunctionPC(void *func, void *param1, u32 param2) { - ABI_AlignStack(3 * 4); + ABI_AlignStack(2 * 4); PUSH(32, Imm32(param2)); PUSH(32, Imm32((u32)param1)); CALL(func); - ABI_RestoreStack(3 * 4); + ABI_RestoreStack(2 * 4); } void XEmitter::ABI_CallFunctionPPC(void *func, void *param1, void *param2,u32 param3) { |
