changeset 6cb378bad253 in /z/repo/gem5 details: http://repo.gem5.org/gem5?cmd=changeset;node=6cb378bad253 description: sim: bump checkpoint version for multiple event queues
This patch adds a fix for older checkpoints before support for multiple event queues were added in changeset 2cce74fe359e. The change in checkpoint version should really hav ebeen part of the aforementioned changeset. diffstat: src/sim/serialize.hh | 2 +- util/cpt_upgrader.py | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletions(-) diffs (36 lines): diff -r d02872388224 -r 6cb378bad253 src/sim/serialize.hh --- a/src/sim/serialize.hh Tue Aug 26 10:12:04 2014 -0400 +++ b/src/sim/serialize.hh Wed Feb 05 16:17:41 2014 -0600 @@ -58,7 +58,7 @@ * SimObject shouldn't cause the version number to increase, only changes to * existing objects such as serializing/unserializing more state, changing sizes * of serialized arrays, etc. */ -static const uint64_t gem5CheckpointVersion = 0x000000000000000b; +static const uint64_t gem5CheckpointVersion = 0x000000000000000c; template <class T> void paramOut(std::ostream &os, const std::string &name, const T ¶m); diff -r d02872388224 -r 6cb378bad253 util/cpt_upgrader.py --- a/util/cpt_upgrader.py Tue Aug 26 10:12:04 2014 -0400 +++ b/util/cpt_upgrader.py Wed Feb 05 16:17:41 2014 -0600 @@ -569,6 +569,12 @@ else: continue +# The change between versions C and D is the addition of support for multiple +# event queues, so for old checkpoints we must specify that there's only one. +def from_B(cpt): + cpt.set('Globals', 'numMainEventQueues', '1') + + migrations = [] migrations.append(from_0) migrations.append(from_1) @@ -581,6 +587,7 @@ migrations.append(from_8) migrations.append(from_9) migrations.append(from_A) +migrations.append(from_B) verbose_print = False _______________________________________________ gem5-dev mailing list gem5-dev@gem5.org http://m5sim.org/mailman/listinfo/gem5-dev