Jit64: Use ImmPtr for inst.OE handling.

A bit slower, but PIE compatible and *very* rarely.
This commit is contained in:
degasus 2016-11-03 20:05:07 +01:00
parent d1c89db8c8
commit 23c284c081

View File

@ -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);
}