summaryrefslogtreecommitdiff
path: root/sim/debug.cc
diff options
context:
space:
mode:
authorSteve Reinhardt <stever@eecs.umich.edu>2003-12-06 09:57:59 -0800
committerSteve Reinhardt <stever@eecs.umich.edu>2003-12-06 09:57:59 -0800
commit37a718e45e9bb1d841c6c5d1b428461819f18a74 (patch)
tree7e239e1aa3941e197e4aebe82243b4264253afb4 /sim/debug.cc
parentb6c77fe6f8fbd6f38718bed48e731145f763888c (diff)
downloadgem5-37a718e45e9bb1d841c6c5d1b428461819f18a74.tar.xz
Various cleanup. Mostly forcing initialization of some fields...
I noticed that checkpoints dumped from m5.debug and m5.opt had differences, which is no longer the case (other than addresses encoded in names). cpu/full_cpu/smt.hh: Get rid of unused SMT_MAX_CPUS. sim/debug.cc: Use AutoDelete for DebugBreakEvent. sim/serialize.cc: sim/serialize.hh: Move constructor & destructor to header so they can be inlined. --HG-- extra : convert_revision : bc68c2c9b053b1de0d655ed555734419fafd0b83
Diffstat (limited to 'sim/debug.cc')
-rw-r--r--sim/debug.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/debug.cc b/sim/debug.cc
index 95187baff..6f3789c96 100644
--- a/sim/debug.cc
+++ b/sim/debug.cc
@@ -66,6 +66,7 @@ class DebugBreakEvent : public Event
DebugBreakEvent::DebugBreakEvent(EventQueue *q, Tick _when)
: Event(q)
{
+ setFlags(AutoDelete);
schedule(_when, -20000);
}
@@ -76,7 +77,6 @@ void
DebugBreakEvent::process()
{
debug_break();
- delete this;
}