From: Nathan Binkert Date: Mon, 11 May 2009 17:38:45 +0000 (-0700) Subject: ruby: fold the debugging options into Debug.cc X-Git-Tag: Calvin_Submission~336^2~23 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e1915f16d140f568dc713820189455cfdf5f9772;p=gem5.git ruby: fold the debugging options into Debug.cc --- 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