mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
Jit64: Use ImmPtr for inst.OE handling.
A bit slower, but PIE compatible and *very* rarely.
This commit is contained in:
parent
d1c89db8c8
commit
23c284c081
@ -51,7 +51,8 @@ void Jit64::GenerateOverflow()
|
||||
// rare).
|
||||
static const u8 ovtable[4] = {0, 0, XER_SO_MASK, XER_SO_MASK};
|
||||
MOVZX(32, 8, RSCRATCH, PPCSTATE(xer_so_ov));
|
||||
MOV(8, R(RSCRATCH), MDisp(RSCRATCH, (u32)(u64)ovtable));
|
||||
MOV(64, R(RSCRATCH2), ImmPtr(ovtable));
|
||||
MOV(8, R(RSCRATCH), MRegSum(RSCRATCH, RSCRATCH2));
|
||||
MOV(8, PPCSTATE(xer_so_ov), R(RSCRATCH));
|
||||
SetJumpTarget(exit);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user