summaryrefslogtreecommitdiff
path: root/src/sim/sim_object.cc
diff options
context:
space:
mode:
authorSteve Reinhardt <steve.reinhardt@amd.com>2010-07-05 21:39:38 -0700
committerSteve Reinhardt <steve.reinhardt@amd.com>2010-07-05 21:39:38 -0700
commit30ce620d1d7b04387072e2dcf87530c33eb7c608 (patch)
tree04d03bbf19ffcec6691b9348b544faf0e5f80992 /src/sim/sim_object.cc
parent345dfd1b41729162ff31da010cce0659ce810897 (diff)
downloadgem5-30ce620d1d7b04387072e2dcf87530c33eb7c608.tar.xz
sim: fold StartupCallback into SimObject
There used to be a reason to have StartupCallback be a separate object, but not any more. Now it's just confusing.
Diffstat (limited to 'src/sim/sim_object.cc')
-rw-r--r--src/sim/sim_object.cc19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/sim/sim_object.cc b/src/sim/sim_object.cc
index c66d766f9..0b18ff437 100644
--- a/src/sim/sim_object.cc
+++ b/src/sim/sim_object.cc
@@ -73,6 +73,11 @@ SimObject::init()
{
}
+void
+SimObject::startup()
+{
+}
+
//
// no default statistics, so nothing to do in base implementation
//
@@ -195,6 +200,20 @@ SimObject::unserializeAll(Checkpoint *cp)
}
}
+
+void
+SimObject::startupAll()
+{
+ SimObjectList::iterator i = simObjectList.begin();
+ SimObjectList::iterator end = simObjectList.end();
+
+ while (i != end) {
+ (*i)->startup();
+ ++i;
+ }
+}
+
+
#ifdef DEBUG
//
// static function: flag which objects should have the debugger break