From a9c6a59307acf2d387735a025d8891cd323172be Mon Sep 17 00:00:00 2001 From: hrydgard Date: Sun, 31 Aug 2008 08:39:57 +0000 Subject: [PATCH] don't lookup things in symbol map unnecessarily in the ppcanalyst, helps slowdowns in debugger in debug mode git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@400 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Core/Src/PowerPC/PPCAnalyst.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/Core/Core/Src/PowerPC/PPCAnalyst.cpp b/Source/Core/Core/Src/PowerPC/PPCAnalyst.cpp index 4598f9cde3..943deaac11 100644 --- a/Source/Core/Core/Src/PowerPC/PPCAnalyst.cpp +++ b/Source/Core/Core/Src/PowerPC/PPCAnalyst.cpp @@ -296,9 +296,10 @@ CodeOp *Flatten(u32 address, u32 &realsize, BlockStats &st, BlockRegStats &gpa, }; Todo todo = Nothing; - Symbol *f = g_symbolDB.GetSymbolFromAddr(address); + //Symbol *f = g_symbolDB.GetSymbolFromAddr(address); int maxsize = 20000; //for now, all will return JustCopy :P + /* if (f) { if (f->flags & FFLAG_LEAF) @@ -320,7 +321,7 @@ CodeOp *Flatten(u32 address, u32 &realsize, BlockStats &st, BlockRegStats &gpa, maxsize = f->size; } - else + else*/ todo = JustCopy; CodeOp *code = codebuffer; //new CodeOp[size];