diff options
author | Lisa Hsu <Lisa.Hsu@amd.com> | 2010-06-08 17:16:36 -0700 |
---|---|---|
committer | Lisa Hsu <Lisa.Hsu@amd.com> | 2010-06-08 17:16:36 -0700 |
commit | d28572499fb224c310f5d0726b3e2eb64235c291 (patch) | |
tree | f87075531299d8b1f03003627b9d17b450e732df /src/sim | |
parent | 4977d8b58ffe72fe679767d44b166bf909fdc3c1 (diff) | |
download | gem5-d28572499fb224c310f5d0726b3e2eb64235c291.tar.xz |
flags: Unserializing old checkpoints before the introduction
of the Initialized flag would break, set Initialized for events upon
unserialization.
Diffstat (limited to 'src/sim')
-rw-r--r-- | src/sim/eventq.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sim/eventq.cc b/src/sim/eventq.cc index 9b08a45d8..900a6dd4b 100644 --- a/src/sim/eventq.cc +++ b/src/sim/eventq.cc @@ -238,7 +238,9 @@ Event::unserialize(Checkpoint *cp, const string §ion) // object itself (since they aren't immediately true) short _flags; UNSERIALIZE_SCALAR(_flags); + assert(initialized()); flags = _flags; + flags.set(Initialized); bool wasScheduled = flags.isSet(Scheduled) && !flags.isSet(Squashed); flags.clear(Squashed | Scheduled); |