mirror of
https://github.com/jpd002/Play-.git
synced 2025-04-28 13:47:57 +03:00
Add proper "empty" return value to GetEffectiveAddress.
Zero is valid and cannot be used as "empty".
This commit is contained in:
parent
e283a2fc79
commit
38d3775a07
13 changed files with 35 additions and 23 deletions
|
@ -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;
|
||||
}();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue