mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-25 12:12:50 +01:00
Notification of NI flag change
Probably useless.
This commit is contained in:
parent
c3d2cd344f
commit
e28ba30561
@ -3377,6 +3377,7 @@ private:
|
||||
void MTFSB1(u32 crbd, bool rc)
|
||||
{
|
||||
u64 mask = (1ULL << crbd);
|
||||
if ((crbd == 29) && !CPU.FPSCR.NI) ConLog.Warning("Non-IEEE mode enabled");
|
||||
CPU.FPSCR.FPSCR |= mask;
|
||||
|
||||
if(rc) UNIMPLEMENTED();
|
||||
@ -3390,6 +3391,7 @@ private:
|
||||
void MTFSB0(u32 crbd, bool rc)
|
||||
{
|
||||
u64 mask = (1ULL << crbd);
|
||||
if ((crbd == 29) && !CPU.FPSCR.NI) ConLog.Warning("Non-IEEE mode disabled");
|
||||
CPU.FPSCR.FPSCR &= ~mask;
|
||||
|
||||
if(rc) UNIMPLEMENTED();
|
||||
@ -3400,10 +3402,12 @@ private:
|
||||
|
||||
if(i)
|
||||
{
|
||||
if ((crfd == 29) && !CPU.FPSCR.NI) ConLog.Warning("Non-IEEE mode enabled");
|
||||
CPU.FPSCR.FPSCR |= mask;
|
||||
}
|
||||
else
|
||||
{
|
||||
if ((crfd == 29) && CPU.FPSCR.NI) ConLog.Warning("Non-IEEE mode disabled");
|
||||
CPU.FPSCR.FPSCR &= ~mask;
|
||||
}
|
||||
|
||||
@ -3422,7 +3426,15 @@ private:
|
||||
if(flm & (1 << i)) mask |= 0xf << (i * 4);
|
||||
}
|
||||
|
||||
const u32 oldNI = CPU.FPSCR.NI;
|
||||
CPU.FPSCR.FPSCR = (CPU.FPSCR.FPSCR & ~mask) | ((u32&)CPU.FPR[frb] & mask);
|
||||
if (CPU.FPSCR.NI != oldNI)
|
||||
{
|
||||
if (oldNI)
|
||||
ConLog.Warning("Non-IEEE mode disabled");
|
||||
else
|
||||
ConLog.Warning("Non-IEEE mode enabled");
|
||||
}
|
||||
if(rc) UNK("mtfsf.");
|
||||
}
|
||||
void FCMPU(u32 crfd, u32 fra, u32 frb)
|
||||
|
Loading…
Reference in New Issue
Block a user