mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 13:57:57 -07:00
Merge pull request #480 from Sonicadvance1/PR371-Revert
Revert "PPCAnalyst now detects internal branches better"
This commit is contained in:
commit
416a3201ed
@ -172,22 +172,11 @@ bool AnalyzeFunction(u32 startAddr, Symbol &func, int max_size)
|
||||
else
|
||||
{
|
||||
u32 target = EvaluateBranchTarget(instr, addr);
|
||||
if (target != INVALID_TARGET)
|
||||
if (target != INVALID_TARGET && instr.LK)
|
||||
{
|
||||
if (instr.LK)
|
||||
{
|
||||
//we found a branch-n-link!
|
||||
func.calls.push_back(SCall(target, addr));
|
||||
func.flags &= ~FFLAG_LEAF;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (target > farthestInternalBranchTarget)
|
||||
{
|
||||
farthestInternalBranchTarget = target;
|
||||
}
|
||||
numInternalBranches++;
|
||||
}
|
||||
//we found a branch-n-link!
|
||||
func.calls.push_back(SCall(target,addr));
|
||||
func.flags &= ~FFLAG_LEAF;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user