Core: Make sure CX86RecompilerOps::CompileInitFpuOperation clears flag for FE_INVALID

This commit is contained in:
zilmar 2024-02-15 21:02:27 +10:30
parent 46f6fae40f
commit 2559d23592
1 changed files with 1 additions and 1 deletions

View File

@ -9116,7 +9116,7 @@ void CX86RecompilerOps::CompileInitFpuOperation(CRegBase::FPU_ROUND RoundMethod)
} }
m_Assembler.stmxcsr(asmjit::x86::dword_ptr((uint64_t)&StatusRegister)); m_Assembler.stmxcsr(asmjit::x86::dword_ptr((uint64_t)&StatusRegister));
m_Assembler.and_(asmjit::x86::dword_ptr((uint64_t)&StatusRegister), ~0x24L); m_Assembler.and_(asmjit::x86::dword_ptr((uint64_t)&StatusRegister), ~0x25L);
m_Assembler.ldmxcsr(asmjit::x86::dword_ptr((uint64_t)&StatusRegister)); m_Assembler.ldmxcsr(asmjit::x86::dword_ptr((uint64_t)&StatusRegister));
m_Assembler.fclex(); m_Assembler.fclex();
} }