summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authordegasus <wickmarkus@web.de>2016-11-03 20:10:48 +0100
committerdegasus <wickmarkus@web.de>2016-12-04 13:09:16 +0100
commit8189ef432be0a7264953ef99f9af000aade8399d (patch)
tree9a9c989d389728a5b17ae37693718dc64053ffcd /Source/Core
parent23c284c0810bd043de493264ec907e7c3ac759d4 (diff)
Jit64: Use ImmPtr for mcrxr.
Only a small overhead, but PIE compatible.
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/PowerPC/Jit64/Jit_SystemRegisters.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/Core/PowerPC/Jit64/Jit_SystemRegisters.cpp b/Source/Core/Core/PowerPC/Jit64/Jit_SystemRegisters.cpp
index 27a8e4afec..be1a9903cc 100644
--- a/Source/Core/Core/PowerPC/Jit64/Jit_SystemRegisters.cpp
+++ b/Source/Core/Core/PowerPC/Jit64/Jit_SystemRegisters.cpp
@@ -529,7 +529,8 @@ void Jit64::mcrxr(UGeckoInstruction inst)
// [SO OV CA 0] << 3
SHL(32, R(RSCRATCH), Imm8(4));
- MOV(64, R(RSCRATCH), MDisp(RSCRATCH, (u32)(u64)m_crTable));
+ MOV(64, R(RSCRATCH2), ImmPtr(m_crTable));
+ MOV(64, R(RSCRATCH), MRegSum(RSCRATCH, RSCRATCH2));
MOV(64, PPCSTATE(cr_val[inst.CRFD]), R(RSCRATCH));
// Clear XER[0-3]