PPCAnalyst: Function calls without link added
This commit is contained in:
parent
95d0a48759
commit
93ba6aa9f2
|
@ -163,9 +163,10 @@ bool AnalyzeFunction(u32 startAddr, Symbol& func, int max_size)
|
||||||
if (target == INVALID_BRANCH_TARGET)
|
if (target == INVALID_BRANCH_TARGET)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (instr.LK)
|
const bool is_external = target < startAddr || (max_size && target >= startAddr + max_size);
|
||||||
|
if (instr.LK || is_external)
|
||||||
{
|
{
|
||||||
// Found a branch-n-link
|
// Found a function call
|
||||||
func.calls.emplace_back(target, addr);
|
func.calls.emplace_back(target, addr);
|
||||||
func.flags &= ~FFLAG_LEAF;
|
func.flags &= ~FFLAG_LEAF;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue