diff options
author | Nathan Binkert <binkertn@umich.edu> | 2004-01-29 22:30:14 -0500 |
---|---|---|
committer | Nathan Binkert <binkertn@umich.edu> | 2004-01-29 22:30:14 -0500 |
commit | 9374efa7255b5e159b1a4732819126a90ff8eb43 (patch) | |
tree | 1d3bb09af9ebe825f4dfef0ce44e93dbb064d5dc /kern/tru64/tru64_system.cc | |
parent | cb35f819c5326b37899695345ad78e032e8d7cdf (diff) | |
download | gem5-9374efa7255b5e159b1a4732819126a90ff8eb43.tar.xz |
wrap debugging stuff with #ifdef DEBUG
--HG--
extra : convert_revision : 8205633c1c1b49b04f389aa40f95fbbc03a43fb6
Diffstat (limited to 'kern/tru64/tru64_system.cc')
-rw-r--r-- | kern/tru64/tru64_system.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kern/tru64/tru64_system.cc b/kern/tru64/tru64_system.cc index 99d99afd4..07c655385 100644 --- a/kern/tru64/tru64_system.cc +++ b/kern/tru64/tru64_system.cc @@ -192,8 +192,10 @@ Tru64System::Tru64System(const string _name, const uint64_t _init_param, //INSTRUMENTATION CODEGEN END #endif //FS_MEASURE +#ifdef DEBUG kernelPanicEvent = new BreakPCEvent(&pcEventQueue, "kernel panic"); consolePanicEvent = new BreakPCEvent(&pcEventQueue, "console panic"); +#endif badaddrEvent = new BadAddrEvent(&pcEventQueue, "badaddr"); skipPowerStateEvent = new SkipFuncEvent(&pcEventQueue, "tl_v48_capture_power_state"); @@ -262,6 +264,7 @@ Tru64System::Tru64System(const string _name, const uint64_t _init_param, strcpy(osflags, boot_osflags.c_str()); } +#ifdef DEBUG if (kernelSymtab->findAddress("panic", addr)) kernelPanicEvent->schedule(addr); else @@ -269,6 +272,7 @@ Tru64System::Tru64System(const string _name, const uint64_t _init_param, if (consoleSymtab->findAddress("panic", addr)) consolePanicEvent->schedule(addr); +#endif if (kernelSymtab->findAddress("badaddr", addr)) badaddrEvent->schedule(addr); @@ -511,8 +515,10 @@ Tru64System::~Tru64System() delete kernelSymtab; delete consoleSymtab; +#ifdef DEBUG delete kernelPanicEvent; delete consolePanicEvent; +#endif delete badaddrEvent; delete skipPowerStateEvent; delete skipScavengeBootEvent; |