FDIVP/FDIVRP should pop the stack when a divide by zero occurs and the exception is masked. Fixes software rendering on Need for Speed III.
This commit is contained in:
parent
829c74f2d5
commit
e17a94a409
1 changed files with 3 additions and 3 deletions
|
|
@ -25,9 +25,9 @@ static int rounding_modes[4] = {FE_TONEAREST, FE_DOWNWARD, FE_UPWARD, FE_TOWARDZ
|
||||||
{ \
|
{ \
|
||||||
pclog("FPU : divide by zero\n"); \
|
pclog("FPU : divide by zero\n"); \
|
||||||
picint(1 << 13); \
|
picint(1 << 13); \
|
||||||
} \
|
|
||||||
return 1; \
|
return 1; \
|
||||||
} \
|
} \
|
||||||
|
} \
|
||||||
else \
|
else \
|
||||||
dst = src1 / (double)src2; \
|
dst = src1 / (double)src2; \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue