serialize.hh (10908:235d75ea01d8) serialize.hh (10930:ddc3d96d6313)
1/*
2 * Copyright (c) 2015 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 62 unchanged lines hidden (view full) ---

71
72/** The current version of the checkpoint format.
73 * This should be incremented by 1 and only 1 for every new version, where a new
74 * version is defined as a checkpoint created before this version won't work on
75 * the current version until the checkpoint format is updated. Adding a new
76 * SimObject shouldn't cause the version number to increase, only changes to
77 * existing objects such as serializing/unserializing more state, changing sizes
78 * of serialized arrays, etc. */
1/*
2 * Copyright (c) 2015 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 62 unchanged lines hidden (view full) ---

71
72/** The current version of the checkpoint format.
73 * This should be incremented by 1 and only 1 for every new version, where a new
74 * version is defined as a checkpoint created before this version won't work on
75 * the current version until the checkpoint format is updated. Adding a new
76 * SimObject shouldn't cause the version number to increase, only changes to
77 * existing objects such as serializing/unserializing more state, changing sizes
78 * of serialized arrays, etc. */
79static const uint64_t gem5CheckpointVersion = 0x000000000000000e;
79static const uint64_t gem5CheckpointVersion = 0x000000000000000f;
80
81template <class T>
82void paramOut(CheckpointOut &cp, const std::string &name, const T &param);
83
84template <typename DataType, typename BitUnion>
85void paramOut(CheckpointOut &cp, const std::string &name,
86 const BitfieldBackend::BitUnionOperators<DataType, BitUnion> &p)
87{

--- 426 unchanged lines hidden ---
80
81template <class T>
82void paramOut(CheckpointOut &cp, const std::string &name, const T &param);
83
84template <typename DataType, typename BitUnion>
85void paramOut(CheckpointOut &cp, const std::string &name,
86 const BitfieldBackend::BitUnionOperators<DataType, BitUnion> &p)
87{

--- 426 unchanged lines hidden ---