alpha: Move some initialization logic from loadState into unserialize.
authorGabe Black <gabeblack@google.com>
Tue, 19 Sep 2017 00:53:29 +0000 (17:53 -0700)
committerGabe Black <gabeblack@google.com>
Thu, 21 Sep 2017 17:43:50 +0000 (17:43 +0000)
commit0658925a8f64a9092599afa4a5432df2cc4812dc
tree10290904d2b0770605391b23d3c77978e398a56e
parentf1b3b2837d886a2101749c0745f5ab215f4ec65c
alpha: Move some initialization logic from loadState into unserialize.

The primary difference between loadState and unserialize, at least when
eventually using the default SimObject implementation of loadState, is that
unserialize is called only if there's a corresponding section in the
checkpoint being restored. In this particular case, the AlphaProcess class
calls the generic Process unserialize function, and that does other critical
initialization like set up the processes page table. If the unserialize
function isn't called, other serious problems would break the simulation
anyway.

This removes the final custom implementation of loadState.

Change-Id: If50062392196bd37efd5ba04fd7aee6907b00dc6
Reviewed-on: https://gem5-review.googlesource.com/4741
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
src/arch/alpha/process.cc
src/arch/alpha/process.hh