PowerPC: Move a few functions to PowerPCState.

This commit is contained in:
Admiral H. Curtiss committed 2023-01-27 15:22:44 +01:00
1 parent 0dcf228aaf
commit 61ba516570
9 files changed
+124 -139

No files matched your search

+5 -5
View File
@@ -200,7 +200,7 @@ static void ResetRegisters()
{
v = 0x8000000000000001;
}
SetXER({});
ppcState.SetXER({});
RoundingModeUpdated();
DBATUpdated();
@@ -661,14 +661,14 @@ void PowerPCState::SetSR(u32 index, u32 value)
// FPSCR update functions
void UpdateFPRFDouble(double dvalue)
void PowerPCState::UpdateFPRFDouble(double dvalue)
{
PowerPC::ppcState.fpscr.FPRF = Common::ClassifyDouble(dvalue);
fpscr.FPRF = Common::ClassifyDouble(dvalue);
}
void UpdateFPRFSingle(float fvalue)
void PowerPCState::UpdateFPRFSingle(float fvalue)
{
PowerPC::ppcState.fpscr.FPRF = Common::ClassifyFloat(fvalue);
fpscr.FPRF = Common::ClassifyFloat(fvalue);
}
void RoundingModeUpdated()