Core: Fix a bug in CX86RecompilerOps::SPECIAL_DIV

This commit is contained in:
zilmar 2024-12-05 17:05:52 +10:30
parent fc1210aac5
commit 77cd679756
1 changed files with 1 additions and 0 deletions

View File

@ -5099,6 +5099,7 @@ void CX86RecompilerOps::SPECIAL_DIV()
m_Assembler.MoveX86regToVariable(&m_Reg.m_HI.UW[0], "_RegHI->UW[0]", RegRs); m_Assembler.MoveX86regToVariable(&m_Reg.m_HI.UW[0], "_RegHI->UW[0]", RegRs);
if (!m_RegWorkingSet.IsMapped(m_Opcode.rs)) if (!m_RegWorkingSet.IsMapped(m_Opcode.rs))
{ {
RegRsHi = RegRs;
m_Assembler.sar(RegRsHi, 31); m_Assembler.sar(RegRsHi, 31);
} }
m_Assembler.MoveX86regToVariable(&m_Reg.m_HI.UW[1], "_RegHI->UW[1]", RegRsHi); m_Assembler.MoveX86regToVariable(&m_Reg.m_HI.UW[1], "_RegHI->UW[1]", RegRsHi);