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; --- 234 unchanged lines hidden (view full) --- 243 outstream << "// checkpoint generated: " << ctime(&t); 244 245 globals.serialize(outstream); 246 SimObject::serializeAll(outstream); 247 248 assert(Serializable::ckptPrevCount + 1 == Serializable::ckptCount); 249 Serializable::ckptPrevCount++; 250 if (ckptMaxCount && ++ckptCount >= ckptMaxCount) |
251 exitSimLoop(curTick + 1, "Maximum number of checkpoints dropped"); |
252 253} 254 255 256void 257Serializable::unserializeGlobals(Checkpoint *cp) 258{ 259 globals.unserialize(cp); --- 228 unchanged lines hidden --- |