diff options
Diffstat (limited to 'sim')
-rw-r--r-- | sim/system.cc | 2 | ||||
-rw-r--r-- | sim/system.hh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sim/system.cc b/sim/system.cc index c91d7f142..4bcc89c56 100644 --- a/sim/system.cc +++ b/sim/system.cc @@ -123,7 +123,7 @@ System::System(Params *p) DPRINTF(Loader, "Kernel loaded...\n"); Addr addr = 0; -#ifdef DEBUG +#ifndef NDEBUG consolePanicEvent = addConsoleFuncEvent<BreakPCEvent>("panic"); #endif diff --git a/sim/system.hh b/sim/system.hh index 8cfe790de..aa697c040 100644 --- a/sim/system.hh +++ b/sim/system.hh @@ -97,7 +97,7 @@ class System : public SimObject Kernel::Binning *kernelBinning; -#ifdef DEBUG +#ifndef NDEBUG /** Event to halt the simulator if the console calls panic() */ BreakPCEvent *consolePanicEvent; #endif |