Add proper "empty" return value to GetEffectiveAddress.

Zero is valid and cannot be used as "empty".
This commit is contained in:
Jean-Philip Desjardins 2022-12-07 14:48:20 -05:00
parent e283a2fc79
commit 38d3775a07
13 changed files with 35 additions and 23 deletions

View file

@ -206,6 +206,10 @@ void CBasicBlock::CompileRange(CMipsJitter* jitter)
return false;
}
uint32 target = m_context.m_pArch->GetInstructionEffectiveAddress(&m_context, branchInstAddr, inst);
if(target == MIPS_INVALID_PC)
{
return false;
}
return target == m_begin;
}();