Merge pull request #548 from LegendOfDragoon/master
Implement edge case in SPECIAL_DSRL32
This commit is contained in:
commit
7121d78a2f
|
@ -3934,8 +3934,15 @@ void CRecompilerOps::SPECIAL_DSRL32() {
|
|||
if (m_Opcode.rt != m_Opcode.rd)
|
||||
UnMap_GPR(m_Opcode.rd, false);
|
||||
|
||||
m_RegWorkingSet.SetMipsRegState(m_Opcode.rd,CRegInfo::STATE_CONST_32_ZERO);
|
||||
m_RegWorkingSet.SetMipsRegLo(m_Opcode.rd, (DWORD)(GetMipsReg(m_Opcode.rt) >> (m_Opcode.sa + 32)));
|
||||
if (m_Opcode.sa == 0) {
|
||||
MIPS_DWORD Value;
|
||||
Value.UW[0] = Value.UW[1] = GetMipsRegHi(m_Opcode.rt);
|
||||
m_RegWorkingSet.SetMipsRegState(m_Opcode.rd,CRegInfo::STATE_CONST_64);
|
||||
m_RegWorkingSet.SetMipsReg(m_Opcode.rd, Value.UDW);
|
||||
} else {
|
||||
m_RegWorkingSet.SetMipsRegState(m_Opcode.rd,CRegInfo::STATE_CONST_32_ZERO);
|
||||
m_RegWorkingSet.SetMipsRegLo(m_Opcode.rd, (DWORD)(GetMipsReg(m_Opcode.rt) >> (m_Opcode.sa + 32)));
|
||||
}
|
||||
} else if (IsMapped(m_Opcode.rt)) {
|
||||
ProtectGPR(m_Opcode.rt);
|
||||
if (Is64Bit(m_Opcode.rt)) {
|
||||
|
|
Loading…
Reference in New Issue