Interpreter: Fix FPRF handling of denormal singles

This commit is contained in:
JosJuice
2021-06-13 14:35:04 +02:00
parent def5666419
commit d56721ebb9
6 changed files with 47 additions and 42 deletions

View File

@@ -626,11 +626,16 @@ void PowerPCState::SetSR(u32 index, u32 value)
// FPSCR update functions
void UpdateFPRF(double dvalue)
void UpdateFPRFDouble(double dvalue)
{
FPSCR.FPRF = Common::ClassifyDouble(dvalue);
}
void UpdateFPRFSingle(float fvalue)
{
FPSCR.FPRF = Common::ClassifyFloat(fvalue);
}
void RoundingModeUpdated()
{
// The rounding mode is separate for each thread, so this must run on the CPU thread