diff --git a/Source/Core/Core/Src/PowerPC/PPCTables.cpp b/Source/Core/Core/Src/PowerPC/PPCTables.cpp index eb62f29f27..0f222df854 100644 --- a/Source/Core/Core/Src/PowerPC/PPCTables.cpp +++ b/Source/Core/Core/Src/PowerPC/PPCTables.cpp @@ -707,9 +707,12 @@ void PrintInstructionRunCounts() temp.push_back(x); } std::sort(temp.begin(), temp.end()); - for (int i = m_numInstructions; i > 1; i--) + for (int i = 0; i < m_numInstructions; i++) { + if(temp[i].count == 0) + break; LOG(GEKKO, "%s : %i", temp[i].name,temp[i].count); + //PanicAlert("%s : %i", temp[i].name,temp[i].count); } }