summaryrefslogtreecommitdiff
path: root/src/sim/sim_object.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/sim/sim_object.cc')
-rw-r--r--src/sim/sim_object.cc10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/sim/sim_object.cc b/src/sim/sim_object.cc
index 32e936ff2..345fb85cb 100644
--- a/src/sim/sim_object.cc
+++ b/src/sim/sim_object.cc
@@ -67,7 +67,6 @@ SimObject::SimObject(const Params *p)
#endif
simObjectList.push_back(this);
- state = Running;
}
void
@@ -151,17 +150,12 @@ debugObjectBreak(const char *objs)
#endif
unsigned int
-SimObject::drain(Event *drain_event)
+SimObject::drain(DrainManager *drain_manager)
{
- state = Drained;
+ setDrainState(Drained);
return 0;
}
-void
-SimObject::resume()
-{
- state = Running;
-}
SimObject *
SimObject::find(const char *name)