summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorcomex <comexk@gmail.com>2014-09-02 23:18:38 -0400
committercomex <comexk@gmail.com>2014-09-06 13:16:21 -0400
commit100a7ac97b090e85eae9c4dfbd6e14c15a89f896 (patch)
tree259eaf04fb24e80daf0a5554d157edea45785a6d /Source
parent8dea26762dcc842ebcb227c0b9b9bbefc487624c (diff)
Actually add RCX, plus RDI and RSI on Unix.
And switch to a register order that consistently prefers callee-save to caller-save. phire suggested putting rdi/rsi first, even though they're caller-save, to save code space; this is more conservative and I can do that later.
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/Core/PowerPC/Jit64/JitRegCache.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/Core/PowerPC/Jit64/JitRegCache.cpp b/Source/Core/Core/PowerPC/Jit64/JitRegCache.cpp
index 8a329eb723..11eb9de2c7 100644
--- a/Source/Core/Core/PowerPC/Jit64/JitRegCache.cpp
+++ b/Source/Core/Core/PowerPC/Jit64/JitRegCache.cpp
@@ -200,9 +200,9 @@ const int* GPRRegCache::GetAllocationOrder(size_t& count)
{
// R12, when used as base register, for example in a LEA, can generate bad code! Need to look into this.
#ifdef _WIN32
- RSI, RDI, R13, R14, R8, R9, R10, R11, R12, //, RCX
+ RSI, RDI, R13, R14, R8, R9, R10, R11, R12, RCX
#else
- R13, R14, R8, R9, R10, R11, R12, //, RCX
+ R12, R13, R14, RSI, RDI, R8, R9, R10, R11, RCX
#endif
};
count = sizeof(allocationOrder) / sizeof(const int);