summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-03-19 11:17:44 -0400
committerLioncash <mathew1800@gmail.com>2018-03-19 11:51:10 -0400
commit675d2fb77401a0372f82e5ca74e09ed4ce6e77ba (patch)
tree4cd920687b4359915a057101aa254a53755ed5f0 /Source/Core
parentf129c936e7d4fea9733c59cace277cc7d1d642b3 (diff)
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.
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/PowerPC/Interpreter/Interpreter_Integer.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/Core/Core/PowerPC/Interpreter/Interpreter_Integer.cpp b/Source/Core/Core/PowerPC/Interpreter/Interpreter_Integer.cpp
index e8731b8c2a..3475eb4073 100644
--- a/Source/Core/Core/PowerPC/Interpreter/Interpreter_Integer.cpp
+++ b/Source/Core/Core/PowerPC/Interpreter/Interpreter_Integer.cpp
@@ -499,8 +499,7 @@ void Interpreter::divwx(UGeckoInstruction inst)
{
if (inst.OE)
{
- // should set OV
- PanicAlert("OE: divwx");
+ SetXER_OV(true);
}
if (((u32)a & 0x80000000) && b == 0)
@@ -526,8 +525,7 @@ void Interpreter::divwux(UGeckoInstruction inst)
{
if (inst.OE)
{
- // should set OV
- PanicAlert("OE: divwux");
+ SetXER_OV(true);
}
rGPR[inst.RD] = 0;