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.
This commit is contained in:
Curtis Dunham 2014-02-05 16:17:41 -06:00
parent 4a3abf3020
commit 04d1f61ae8
2 changed files with 8 additions and 1 deletions

View file

@ -58,7 +58,7 @@ class EventQueue;
* 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 &param);

View file

@ -569,6 +569,12 @@ def from_A(cpt):
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_7)
migrations.append(from_8)
migrations.append(from_9)
migrations.append(from_A)
migrations.append(from_B)
verbose_print = False