Core: Mask COP1_CT reg 31

This commit is contained in:
zilmar 2022-12-12 19:04:03 +10:30
parent d3afe97d38
commit c8bb04b6b0
1 changed files with 1 additions and 5 deletions

View File

@ -1900,7 +1900,7 @@ void R4300iOp::COP1_CT()
TEST_COP1_USABLE_EXCEPTION();
if (m_Opcode.fs == 31)
{
_FPCR[m_Opcode.fs] = _GPR[m_Opcode.rt].W[0];
_FPCR[m_Opcode.fs] = (_GPR[m_Opcode.rt].W[0] & 0x183FFFF);
switch ((_FPCR[m_Opcode.fs] & 3))
{
case 0: *_RoundingModel = FE_TONEAREST; break;
@ -1910,10 +1910,6 @@ void R4300iOp::COP1_CT()
}
return;
}
if (HaveDebugger())
{
g_Notify->DisplayError("CTC1: what register are you writing to?");
}
}
// COP1: BC1 functions