main.cc (4078:3f73f808bbd4) | main.cc (4081:80f1e833d118) |
---|---|
1/* 2 * Copyright (c) 2000-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; --- 258 unchanged lines hidden (view full) --- 267 268/** 269 * Do final initialization steps after object construction but before 270 * start of simulation. 271 */ 272void 273finalInit() 274{ | 1/* 2 * Copyright (c) 2000-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; --- 258 unchanged lines hidden (view full) --- 267 268/** 269 * Do final initialization steps after object construction but before 270 * start of simulation. 271 */ 272void 273finalInit() 274{ |
275 // Parse and check all non-config-hierarchy parameters. 276 ParamContext::parseAllContexts(inifile); 277 ParamContext::checkAllContexts(); 278 279 // Echo all parameter settings to stats file as well. 280 ParamContext::showAllContexts(*configStream); 281 | |
282 // Do a second pass to finish initializing the sim objects 283 SimObject::initAll(); 284 285 // Restore checkpointed state, if any. 286#if 0 287 configHierarchy.unserializeSimObjects(); 288#endif 289 --- 167 unchanged lines hidden (view full) --- 457void 458doExitCleanup() 459{ 460 exitCallbacks().process(); 461 exitCallbacks().clear(); 462 463 cout.flush(); 464 | 275 // Do a second pass to finish initializing the sim objects 276 SimObject::initAll(); 277 278 // Restore checkpointed state, if any. 279#if 0 280 configHierarchy.unserializeSimObjects(); 281#endif 282 --- 167 unchanged lines hidden (view full) --- 450void 451doExitCleanup() 452{ 453 exitCallbacks().process(); 454 exitCallbacks().clear(); 455 456 cout.flush(); 457 |
465 ParamContext::cleanupAllContexts(); 466 | |
467 // print simulation stats 468 Stats::dump(); 469} | 458 // print simulation stats 459 Stats::dump(); 460} |