Merge pull request #6775 from lioncash/flags

Interpreter_FPUtils: Properly update the FPSCR's FEX bit in UpdateFPSCR()
This commit is contained in:
Anthony 2018-05-06 19:07:13 -07:00 committed by GitHub
commit d131e4d2bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -46,7 +46,8 @@ inline void SetFI(int FI)
inline void UpdateFPSCR() inline void UpdateFPSCR()
{ {
FPSCR.VX = (FPSCR.Hex & FPSCR_VX_ANY) != 0; FPSCR.VX = (FPSCR.Hex & FPSCR_VX_ANY) != 0;
FPSCR.FEX = 0; // we assume that "?E" bits are always 0 FPSCR.FEX = (FPSCR.VX & FPSCR.VE) | (FPSCR.OX & FPSCR.OE) | (FPSCR.UX & FPSCR.UE) |
(FPSCR.ZX & FPSCR.ZE) | (FPSCR.XX & FPSCR.XE);
} }
inline double ForceSingle(double value) inline double ForceSingle(double value)