summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/Core/PowerPC/Interpreter/Interpreter_FPUtils.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/Core/Core/PowerPC/Interpreter/Interpreter_FPUtils.h b/Source/Core/Core/PowerPC/Interpreter/Interpreter_FPUtils.h
index 843b580fdd..511d34f073 100644
--- a/Source/Core/Core/PowerPC/Interpreter/Interpreter_FPUtils.h
+++ b/Source/Core/Core/PowerPC/Interpreter/Interpreter_FPUtils.h
@@ -127,9 +127,14 @@ inline double NI_div(double a, double b)
if (b == 0.0)
{
- SetFPException(FPSCR_ZX);
if (a == 0.0)
+ {
SetFPException(FPSCR_VXZDZ);
+ }
+ else
+ {
+ SetFPException(FPSCR_ZX);
+ }
}
else if (std::isinf(a) && std::isinf(b))
{