Skip to content

Commit

Permalink
JIT: Fix callee-save registers on WIN64
Browse files Browse the repository at this point in the history
  • Loading branch information
FioraAeterna committed Sep 1, 2014
1 parent f8e24de commit daa72c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Source/Core/Common/x64ABI.h
Expand Up @@ -32,8 +32,8 @@

#define ABI_ALL_CALLER_SAVED ((1 << RAX) | (1 << RCX) | (1 << RDX) | (1 << R8) | \
(1 << R9) | (1 << R10) | (1 << R11) | \
(1 << XMM0) | (1 << XMM1) | (1 << XMM2) | (1 << XMM3) | \
(1 << XMM4) | (1 << XMM5))
(1 << (XMM0+16)) | (1 << (XMM1+16)) | (1 << (XMM2+16)) | (1 << (XMM3+16)) | \
(1 << (XMM4+16)) | (1 << (XMM5+16)))

#else //64-bit Unix / OS X

Expand Down
2 changes: 1 addition & 1 deletion Source/Core/Core/PowerPC/JitCommon/JitAsmCommon.cpp
Expand Up @@ -9,7 +9,7 @@
#include "Core/PowerPC/JitCommon/JitBase.h"

#define QUANTIZED_REGS_TO_SAVE (ABI_ALL_CALLER_SAVED & ~((1 << RAX) | (1 << RCX) | (1 << RDX) | \
(1 << XMM0) | (1 << XMM1)))
(1 << (XMM0+16)) | (1 << (XMM1+16))))

using namespace Gen;

Expand Down

0 comments on commit daa72c9

Please sign in to comment.