Remember to throw your FPU exception kids

This commit is contained in:
SimoneN64
2024-06-21 23:41:19 +02:00
parent 0f9cf09017
commit e957029c50

View File

@@ -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) {