root.hh (12088:ffd7952e9929) | root.hh (12185:90a329add771) |
---|---|
1/* 2 * Copyright (c) 2011 Advanced Micro Devices, Inc. 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; --- 89 unchanged lines hidden (view full) --- 98 const Params * 99 params() const 100 { 101 return dynamic_cast<const Params *>(_params); 102 } 103 104 Root(Params *p); 105 | 1/* 2 * Copyright (c) 2011 Advanced Micro Devices, Inc. 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; --- 89 unchanged lines hidden (view full) --- 98 const Params * 99 params() const 100 { 101 return dynamic_cast<const Params *>(_params); 102 } 103 104 Root(Params *p); 105 |
106 /** Schedule the timesync event at loadState() so that curTick is correct | 106 /** Schedule the timesync event at startup(). |
107 */ | 107 */ |
108 void loadState(CheckpointIn &cp) override; | 108 void startup() override; |
109 | 109 |
110 /** Schedule the timesync event at initState() when not unserializing 111 */ 112 void initState() override; 113 | |
114 void serialize(CheckpointOut &cp) const override; | 110 void serialize(CheckpointOut &cp) const override; |
115 void unserialize(CheckpointIn &cp) override; | |
116}; 117 118#endif // __SIM_ROOT_HH__ | 111}; 112 113#endif // __SIM_ROOT_HH__ |