From f1b3b2837d886a2101749c0745f5ab215f4ec65c Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Mon, 18 Sep 2017 17:35:00 -0700 Subject: sim: Stop using loadState in the Root SimObject. The primary difference between using loadState and letting the default implementation of loadState call unserialize is that whether or not that code is called is dependent on that object being associated with a section in the checkpoint file being unserialized. Since there's always a "root" object, there should always be a section for it in the checkpoint and those should be equivalent. This removes one custom implementation of the loadState function. Change-Id: Ia674ccc18e141f38746e22ccfddc21475b1a0731 Reviewed-on: https://gem5-review.googlesource.com/4740 Reviewed-by: Jason Lowe-Power Reviewed-by: Andreas Sandberg Maintainer: Andreas Sandberg --- src/sim/root.cc | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'src/sim/root.cc') 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,18 +119,11 @@ 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 { @@ -139,10 +132,6 @@ Root::serialize(CheckpointOut &cp) const SERIALIZE_SCALAR(isa); } -void -Root::unserialize(CheckpointIn &cp) -{} - bool FullSystem; unsigned int FullSystemInt; -- cgit v1.2.3