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:
parent
f129c936e7
commit
675d2fb774
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue