serialize.hh (9048:950298f29140) | serialize.hh (9056:0e38b529c387) |
---|---|
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; --- 38 unchanged lines hidden (view full) --- 47 48class IniFile; 49class Serializable; 50class Checkpoint; 51class SimObject; 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 | 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; --- 38 unchanged lines hidden (view full) --- 47 48class IniFile; 49class Serializable; 50class Checkpoint; 51class SimObject; 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 wont work on | 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 | 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 stote, changing sizes | 58 * existing objects such as serializing/unserializing more state, changing sizes |
59 * of serialized arrays, etc. */ 60static const uint64_t gem5CheckpointVersion = 0x0000000000000001; 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, --- 229 unchanged lines hidden --- | 59 * of serialized arrays, etc. */ 60static const uint64_t gem5CheckpointVersion = 0x0000000000000001; 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, --- 229 unchanged lines hidden --- |