From e957029c50e1c86a414d7a9e6a763410312784f6 Mon Sep 17 00:00:00 2001 From: SimoneN64 Date: Fri, 21 Jun 2024 23:41:19 +0200 Subject: [PATCH] Remember to throw your FPU exception kids --- src/backend/core/registers/cop/cop1instructions.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/backend/core/registers/cop/cop1instructions.cpp b/src/backend/core/registers/cop/cop1instructions.cpp index b44d96ed..f2f5600d 100644 --- a/src/backend/core/registers/cop/cop1instructions.cpp +++ b/src/backend/core/registers/cop/cop1instructions.cpp @@ -239,6 +239,7 @@ void Cop1::SetCauseRaised(int raised) { if (raised & FE_UNDERFLOW) { if (!fcr31.fs || fcr31.enable_underflow || fcr31.enable_inexact_operation) { SetCauseUnimplemented(); + CheckFPUException(); return; } else { SetCauseUnderflow(); @@ -260,6 +261,8 @@ void Cop1::SetCauseRaised(int raised) { if (raised & FE_INVALID) { SetCauseInvalid(); } + + CheckFPUException(); } void Cop1::SetCauseRaisedCVT(int raised) {