summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorcomex <comexk@gmail.com>2013-09-25 14:28:59 -0400
committercomex <comexk@gmail.com>2013-09-25 14:29:17 -0400
commitecca0045a9baddeb5bd1f1201cd4db7b45ef386e (patch)
tree6749b7a01f601d8290fdf36c0343ac400668cbe5 /Source/Core
parent691f76b826920888b017e1c6932b135c031bc081 (diff)
Fix Imm8 check.
(I blame whoever made it take a u8 despite logically being a s8.)
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Common/Src/x64Emitter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/Common/Src/x64Emitter.cpp b/Source/Core/Common/Src/x64Emitter.cpp
index 01fb0c5268..9b6731856f 100644
--- a/Source/Core/Common/Src/x64Emitter.cpp
+++ b/Source/Core/Common/Src/x64Emitter.cpp
@@ -1657,7 +1657,7 @@ void XEmitter::PushRegistersAndAlignStack(u32 mask)
}
size += shadow;
if (size)
- SUB(64, R(RSP), size >= 0x100 ? Imm32(size) : Imm8(size));
+ SUB(64, R(RSP), size >= 0x80 ? Imm32(size) : Imm8(size));
int offset = shadow;
for (int x = 0; x < 16; x++)
{
@@ -1692,7 +1692,7 @@ void XEmitter::PopRegistersAndAlignStack(u32 mask)
size += (count & 1) ? 0 : 8;
if (size)
- ADD(64, R(RSP), size >= 0x100 ? Imm32(size) : Imm8(size));
+ ADD(64, R(RSP), size >= 0x80 ? Imm32(size) : Imm8(size));
for (int r = 15; r >= 0; r--)
{
if (mask & (1 << r))