Remove unnecessary block lookup.

This commit is contained in:
Jean-Philip Desjardins 2018-05-31 13:07:34 -04:00
parent 525dfae51e
commit 30ed7a2c34

View File

@ -135,7 +135,7 @@ CBasicBlock* CMipsExecutor::FindBlockStartingAt(uint32 address) const
auto& subTable = m_blockTable[hiAddress];
if(!subTable) return nullptr;
auto result = subTable[loAddress / 4];
if((address != 0) && (FindBlockAt(address - 4) == result))
if(!result || (result->GetBeginAddress() != address))
{
return nullptr;
}