From e1915f16d140f568dc713820189455cfdf5f9772 Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Mon, 11 May 2009 10:38:45 -0700 Subject: ruby: fold the debugging options into Debug.cc --- src/mem/ruby/common/Debug.cc | 39 +++++++++++++++++++++++++-------------- src/mem/ruby/common/Debug.def | 17 ----------------- src/mem/ruby/common/Debug.hh | 21 +++++++++++++++++---- 3 files changed, 42 insertions(+), 35 deletions(-) delete mode 100644 src/mem/ruby/common/Debug.def (limited to 'src/mem/ruby') diff --git a/src/mem/ruby/common/Debug.cc b/src/mem/ruby/common/Debug.cc index a07e61b2d..4c2263b0c 100644 --- a/src/mem/ruby/common/Debug.cc +++ b/src/mem/ruby/common/Debug.cc @@ -43,20 +43,31 @@ class Debug; extern Debug* g_debug_ptr; std::ostream * debug_cout_ptr; -// component character list -const char DEFINE_COMP_CHAR[] = +struct DebugComponentData { -#undef DEFINE_COMP -#define DEFINE_COMP(component, character, description) character, -#include "Debug.def" + const char *desc; + const char ch; }; -// component description list -const char* DEFINE_COMP_DESCRIPTION[] = +// component character list +DebugComponentData debugComponents[] = { -#undef DEFINE_COMP -#define DEFINE_COMP(component, character, description) description, -#include "Debug.def" + {"System", 's' }, + {"Node", 'N' }, + {"Queue", 'q' }, + {"Event Queue", 'e' }, + {"Network", 'n' }, + {"Sequencer", 'S' }, + {"Tester", 't' }, + {"Generated", 'g' }, + {"SLICC", 'l' }, + {"Network Queues", 'Q' }, + {"Time", 'T' }, + {"Network Internals", 'i' }, + {"Store Buffer", 'b' }, + {"Cache", 'c' }, + {"Predictor", 'p' }, + {"Allocator", 'a' }, }; extern "C" void changeDebugVerbosity(VerbosityLevel vb); @@ -197,7 +208,7 @@ bool Debug::checkFilter(char ch) { for (int i=0; i