Jit64: Use ImmPtr for mcrxr.

Only a small overhead, but PIE compatible.
This commit is contained in:
degasus 2016-11-03 20:10:48 +01:00
parent 23c284c081
commit 8189ef432b
1 changed files with 2 additions and 1 deletions

View File

@ -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]