Remember to throw your FPU exception kids
This commit is contained in:
@@ -239,6 +239,7 @@ void Cop1::SetCauseRaised(int raised) {
|
|||||||
if (raised & FE_UNDERFLOW) {
|
if (raised & FE_UNDERFLOW) {
|
||||||
if (!fcr31.fs || fcr31.enable_underflow || fcr31.enable_inexact_operation) {
|
if (!fcr31.fs || fcr31.enable_underflow || fcr31.enable_inexact_operation) {
|
||||||
SetCauseUnimplemented();
|
SetCauseUnimplemented();
|
||||||
|
CheckFPUException();
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
SetCauseUnderflow();
|
SetCauseUnderflow();
|
||||||
@@ -260,6 +261,8 @@ void Cop1::SetCauseRaised(int raised) {
|
|||||||
if (raised & FE_INVALID) {
|
if (raised & FE_INVALID) {
|
||||||
SetCauseInvalid();
|
SetCauseInvalid();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CheckFPUException();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Cop1::SetCauseRaisedCVT(int raised) {
|
void Cop1::SetCauseRaisedCVT(int raised) {
|
||||||
|
|||||||
Reference in New Issue
Block a user