Merge pull request #5437 from sepalani/ppc-ibat

PPCAnalyst: Use the proper RAM check
This commit is contained in:
Tilka 2017-05-17 13:28:13 +01:00 committed by GitHub
commit 8be41d3b7c
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ bool AnalyzeFunction(u32 startAddr, Symbol& func, int max_size)
for (u32 addr = startAddr; true; addr += 4)
{
func.size += 4;
if (func.size >= CODEBUFFER_SIZE * 4 || !PowerPC::HostIsRAMAddress(addr)) // weird
if (func.size >= CODEBUFFER_SIZE * 4 || !PowerPC::HostIsInstructionRAMAddress(addr)) // weird
return false;
if (max_size && func.size > max_size)