Skip to content

Commit

Permalink
Core: Make sure CX86RecompilerOps::CompileInitFpuOperation clears fla…
Browse files Browse the repository at this point in the history
…g for FE_INVALID
  • Loading branch information
project64 committed Feb 15, 2024
1 parent 46f6fae commit 2559d23
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -9116,7 +9116,7 @@ void CX86RecompilerOps::CompileInitFpuOperation(CRegBase::FPU_ROUND RoundMethod)
}

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.fclex();
}
Expand Down

0 comments on commit 2559d23

Please sign in to comment.