serialize.hh (9342:6fec8f26e56d) | serialize.hh (9425:a24092160ec7) |
---|---|
1/* 2 * Copyright (c) 2002-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 43 unchanged lines hidden (view full) --- 52 53/** The current version of the checkpoint format. 54 * This should be incremented by 1 and only 1 for every new version, where a new 55 * version is defined as a checkpoint created before this version won't work on 56 * the current version until the checkpoint format is updated. Adding a new 57 * SimObject shouldn't cause the version number to increase, only changes to 58 * existing objects such as serializing/unserializing more state, changing sizes 59 * of serialized arrays, etc. */ | 1/* 2 * Copyright (c) 2002-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 43 unchanged lines hidden (view full) --- 52 53/** The current version of the checkpoint format. 54 * This should be incremented by 1 and only 1 for every new version, where a new 55 * version is defined as a checkpoint created before this version won't work on 56 * the current version until the checkpoint format is updated. Adding a new 57 * SimObject shouldn't cause the version number to increase, only changes to 58 * existing objects such as serializing/unserializing more state, changing sizes 59 * of serialized arrays, etc. */ |
60static const uint64_t gem5CheckpointVersion = 0x0000000000000003; | 60static const uint64_t gem5CheckpointVersion = 0x0000000000000004; |
61 62template <class T> 63void paramOut(std::ostream &os, const std::string &name, const T ¶m); 64 65template <class T> 66void paramIn(Checkpoint *cp, const std::string §ion, 67 const std::string &name, T ¶m); 68 --- 234 unchanged lines hidden --- | 61 62template <class T> 63void paramOut(std::ostream &os, const std::string &name, const T ¶m); 64 65template <class T> 66void paramIn(Checkpoint *cp, const std::string §ion, 67 const std::string &name, T ¶m); 68 --- 234 unchanged lines hidden --- |