sim_object.hh (7534:c76a14014c27) | sim_object.hh (7823:dac01f14f20f) |
---|---|
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 --- 117 unchanged lines hidden (view full) --- 126 // register statistics for this object 127 virtual void regStats(); 128 virtual void regFormulas(); 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, | 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 --- 117 unchanged lines hidden (view full) --- 126 // register statistics for this object 127 virtual void regStats(); 128 virtual void regFormulas(); 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 | 134 * such as the curTick() value), so this is the appropriate place to |
135 * schedule initial event(s) for objects that need them. 136 */ 137 virtual void startup(); 138 139 // static: call nameOut() & serialize() on all SimObjects 140 static void serializeAll(std::ostream &); 141 static void unserializeAll(Checkpoint *cp); 142 --- 26 unchanged lines hidden --- | 135 * schedule initial event(s) for objects that need them. 136 */ 137 virtual void startup(); 138 139 // static: call nameOut() & serialize() on all SimObjects 140 static void serializeAll(std::ostream &); 141 static void unserializeAll(Checkpoint *cp); 142 --- 26 unchanged lines hidden --- |