gem5/src
Steve Reinhardt f064aa3060 sim: revamp unserialization procedure
Replace direct call to unserialize() on each SimObject with a pair of
calls for better control over initialization in both ckpt and non-ckpt
cases.

If restoring from a checkpoint, loadState(ckpt) is called on each
SimObject.  The default implementation simply calls unserialize() if
there is a corresponding checkpoint section, so we get backward
compatibility for existing objects.  However, objects can override
loadState() to get other behaviors, e.g., doing other programmed
initializations after unserialize(), or complaining if no checkpoint
section is found.  (Note that the default warning for a missing
checkpoint section is now gone.)

If not restoring from a checkpoint, we call the new initState() method
on each SimObject instead.  This provides a hook for state
initializations that are only required when *not* restoring from a
checkpoint.

Given this new framework, do some cleanup of LiveProcess subclasses
and X86System, which were (in some cases) emulating initState()
behavior in startup via a local flag or (in other cases) erroneously
doing initializations in startup() that clobbered state loaded earlier
by unserialize().
2010-08-17 05:17:06 -07:00
..
arch sim: revamp unserialization procedure 2010-08-17 05:17:06 -07:00
base stats: unify the two stats distribution type better 2010-07-21 18:54:53 -07:00
cpu Inorder: Fix compilation of m5.fast. 2010-08-14 01:00:45 -07:00
dev bus: clean up default responder code. 2010-08-17 05:06:21 -07:00
doxygen Fix up doxygen. 2006-08-14 19:25:07 -04:00
kern macos: MacOS has deprecated getdirentries, so just disable the code. 2010-05-06 08:42:21 -07:00
mem bus: clean up default responder code. 2010-08-17 05:06:21 -07:00
python sim: revamp unserialization procedure 2010-08-17 05:17:06 -07:00
sim sim: revamp unserialization procedure 2010-08-17 05:17:06 -07:00
unittest stats: cleanup a few small problems in stats 2010-07-21 15:53:53 -07:00
Doxyfile Fix up doxygen. 2006-08-14 19:25:07 -04:00
SConscript python: Add mechanism to override code compiled into the exectuable 2010-07-21 15:53:52 -07:00