sim: Stop using loadState in the Root SimObject.
authorGabe Black <gabeblack@google.com>
Tue, 19 Sep 2017 00:35:00 +0000 (17:35 -0700)
committerGabe Black <gabeblack@google.com>
Thu, 21 Sep 2017 17:34:59 +0000 (17:34 +0000)
commitf1b3b2837d886a2101749c0745f5ab215f4ec65c
treec4b9bb4d6e5f53a04ecb1d4e91112a9365fe323c
parent0fb142224c275d201227176a007202f3ed51211a
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 <jason@lowepower.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
src/sim/root.cc
src/sim/root.hh