Skip to content

Commit

Permalink
Core: Have COP1_W_CVT_S handle the initialization of exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
project64 committed Dec 28, 2023
1 parent 17288c9 commit dafa1fb
Showing 1 changed file with 13 additions and 1 deletion.
Expand Up @@ -8463,7 +8463,19 @@ void CX86RecompilerOps::COP1_D_CMP()
// COP1: W functions
void CX86RecompilerOps::COP1_W_CVT_S()
{
CompileCop1Test();
if (FpuExceptionInRecompiler())
{
CompileInitFpuOperation(CRegBase::RoundUnknown);
if (m_RegWorkingSet.RegInStack(m_Opcode.fs, CRegInfo::FPU_Any) || m_RegWorkingSet.RegInStack(m_Opcode.fd, CRegInfo::FPU_Any))
{
g_Notify->BreakPoint(__FILE__, __LINE__);
return;
}
}
else
{
CompileCop1Test();
}
if (m_Opcode.fd != m_Opcode.fs || !m_RegWorkingSet.RegInStack(m_Opcode.fd, CRegInfo::FPU_Dword))
{
m_RegWorkingSet.Load_FPR_ToTop(m_Opcode.fd, m_Opcode.fs, CRegInfo::FPU_Dword);
Expand Down

0 comments on commit dafa1fb

Please sign in to comment.