Interpreter_Integer: Set the overflow flag if the OE bit is set for divw and divwu

divw and divwu won't panic now if the OE bit is set for these instructions.
This commit is contained in:
Lioncash 2018-03-19 11:17:44 -04:00
parent f129c936e7
commit 675d2fb774
1 changed files with 2 additions and 4 deletions

View File

@ -499,8 +499,7 @@ void Interpreter::divwx(UGeckoInstruction inst)
{ {
if (inst.OE) if (inst.OE)
{ {
// should set OV SetXER_OV(true);
PanicAlert("OE: divwx");
} }
if (((u32)a & 0x80000000) && b == 0) if (((u32)a & 0x80000000) && b == 0)
@ -526,8 +525,7 @@ void Interpreter::divwux(UGeckoInstruction inst)
{ {
if (inst.OE) if (inst.OE)
{ {
// should set OV SetXER_OV(true);
PanicAlert("OE: divwux");
} }
rGPR[inst.RD] = 0; rGPR[inst.RD] = 0;