mirror of https://github.com/PCSX2/pcsx2.git
iR5900Analysis: Always set COP2 status flag bit for VSQRT/VRSQRT/VDIV
These update flags unconditional on FMAC.
This commit is contained in:
parent
367a69cdfe
commit
5a0c8c9f32
|
@ -151,8 +151,10 @@ void COP2FlagHackPass::Run(u32 start, u32 end, EEINST* inst_cache)
|
|||
m_status_denormalized = true;
|
||||
}
|
||||
|
||||
// if we're still behind the next CFC2 after the sticky bits got cleared, we need to update flags
|
||||
if (apc < m_cfc2_pc)
|
||||
// If we're still behind the next CFC2 after the sticky bits got cleared, we need to update flags
|
||||
// also do this if we're a vsqrt/vrsqrt/vdiv, these update status unconditionally.
|
||||
const u32 sub_opcode = (cpuRegs.code & 3) | ((cpuRegs.code >> 4) & 0x7c);
|
||||
if (apc < m_cfc2_pc || (_Rs_ >= 020 && sub_opcode >= 070 && sub_opcode <= 072))
|
||||
inst->info |= EEINST_COP2_STATUS_FLAG;
|
||||
|
||||
m_last_status_write = inst;
|
||||
|
|
Loading…
Reference in New Issue