summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/sim/root.cc13
-rw-r--r--src/sim/root.hh9
2 files changed, 3 insertions, 19 deletions
diff --git a/src/sim/root.cc b/src/sim/root.cc
index f4aabad2e..41adf1cf0 100644
--- a/src/sim/root.cc
+++ b/src/sim/root.cc
@@ -119,19 +119,12 @@ Root::Root(RootParams *p)
}
void
-Root::initState()
+Root::startup()
{
timeSyncEnable(params()->time_sync_enable);
}
void
-Root::loadState(CheckpointIn &cp)
-{
- SimObject::loadState(cp);
- timeSyncEnable(params()->time_sync_enable);
-}
-
-void
Root::serialize(CheckpointOut &cp) const
{
SERIALIZE_SCALAR(FullSystem);
@@ -139,10 +132,6 @@ Root::serialize(CheckpointOut &cp) const
SERIALIZE_SCALAR(isa);
}
-void
-Root::unserialize(CheckpointIn &cp)
-{}
-
bool FullSystem;
unsigned int FullSystemInt;
diff --git a/src/sim/root.hh b/src/sim/root.hh
index db207a77b..c5f42b807 100644
--- a/src/sim/root.hh
+++ b/src/sim/root.hh
@@ -103,16 +103,11 @@ class Root : public SimObject
Root(Params *p);
- /** Schedule the timesync event at loadState() so that curTick is correct
+ /** Schedule the timesync event at startup().
*/
- void loadState(CheckpointIn &cp) override;
-
- /** Schedule the timesync event at initState() when not unserializing
- */
- void initState() override;
+ void startup() override;
void serialize(CheckpointOut &cp) const override;
- void unserialize(CheckpointIn &cp) override;
};
#endif // __SIM_ROOT_HH__