Core: Do not allow CX86RecompilerOps::SPECIAL_DSRL32 and CX86RecompilerOps::SPECIAL_DSRA32 to write to R0

This commit is contained in:
zilmar 2024-12-05 11:25:20 +10:30
parent 1e4ab04121
commit fc1210aac5
1 changed files with 8 additions and 0 deletions

View File

@ -7288,6 +7288,10 @@ void CX86RecompilerOps::SPECIAL_DSLL32()
void CX86RecompilerOps::SPECIAL_DSRL32()
{
if (m_Opcode.rd == 0)
{
return;
}
if (m_RegWorkingSet.IsConst(m_Opcode.rt))
{
if (m_Opcode.rt != m_Opcode.rd)
@ -7339,6 +7343,10 @@ void CX86RecompilerOps::SPECIAL_DSRL32()
void CX86RecompilerOps::SPECIAL_DSRA32()
{
if (m_Opcode.rd == 0)
{
return;
}
if (m_RegWorkingSet.IsConst(m_Opcode.rt))
{
if (m_Opcode.rt != m_Opcode.rd)