mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Jit64: Use ImmPtr for mcrxr.
Only a small overhead, but PIE compatible.
This commit is contained in:
@ -529,7 +529,8 @@ void Jit64::mcrxr(UGeckoInstruction inst)
|
|||||||
// [SO OV CA 0] << 3
|
// [SO OV CA 0] << 3
|
||||||
SHL(32, R(RSCRATCH), Imm8(4));
|
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));
|
MOV(64, PPCSTATE(cr_val[inst.CRFD]), R(RSCRATCH));
|
||||||
|
|
||||||
// Clear XER[0-3]
|
// Clear XER[0-3]
|
||||||
|
Reference in New Issue
Block a user