From: Lisa Hsu Date: Wed, 9 Jun 2010 00:16:36 +0000 (-0700) Subject: flags: Unserializing old checkpoints before the introduction X-Git-Tag: stable_2012_02_02~1042 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d28572499fb224c310f5d0726b3e2eb64235c291;p=gem5.git flags: Unserializing old checkpoints before the introduction of the Initialized flag would break, set Initialized for events upon unserialization. --- 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);