Core: Clear FP Status flag in recompiler on BC1FL and BC1TL

This commit is contained in:
zilmar 2024-05-09 10:55:38 +09:30
parent 4c23e7af2c
commit f478f16269
1 changed files with 2 additions and 0 deletions

View File

@ -785,6 +785,8 @@ void CX86RecompilerOps::Compile_BranchLikely(RecompilerBranchCompare CompareType
if (CompareType == RecompilerBranchCompare_COP1BCF || CompareType == RecompilerBranchCompare_COP1BCT)
{
CompileCop1Test();
asmjit::x86::Gp StatusReg = m_RegWorkingSet.Map_FPStatusReg();
m_Assembler.and_(StatusReg, (uint32_t)(~0x0003F000));
}
if (!g_System->bLinkBlocks() || (m_CompilePC & 0xFFC) == 0xFFC)
{