1/* 2 * Copyright (c) 2001-2005 The Regents of The University of Michigan 3 * Copyright (c) 2010 Advanced Micro Devices, Inc. 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 112 unchanged lines hidden (view full) --- 121 * initState() is called on each SimObject when *not* restoring 122 * from a checkpoint. This provides a hook for state 123 * initializations that are only required for a "cold start". 124 */ 125 virtual void initState(); 126 127 // register statistics for this object 128 virtual void regStats(); |
129 virtual void resetStats(); 130 131 /** 132 * startup() is the final initialization call before simulation. 133 * All state is initialized (including unserialized state, if any, 134 * such as the curTick() value), so this is the appropriate place to 135 * schedule initial event(s) for objects that need them. 136 */ --- 31 unchanged lines hidden --- |