From 5147e721ae62e470e0d445f083413fa9b72915e9 Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Tue, 10 Jun 2014 04:58:56 -0500 Subject: [PATCH] Revert "PPCAnalyst now detects internal branches better" This reverts commit 31ec57ab81790b4fd8f7237adc60279535416166. --- Source/Core/Core/PowerPC/PPCAnalyst.cpp | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/Source/Core/Core/PowerPC/PPCAnalyst.cpp b/Source/Core/Core/PowerPC/PPCAnalyst.cpp index a592a28a57..040f9fe25a 100644 --- a/Source/Core/Core/PowerPC/PPCAnalyst.cpp +++ b/Source/Core/Core/PowerPC/PPCAnalyst.cpp @@ -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; } } }