41 #ifndef __SIM_ROOT_HH__ 
   42 #define __SIM_ROOT_HH__ 
   45 #include "params/Root.hh" 
  119 #endif // __SIM_ROOT_HH__ 
const Time timeSyncSpinThreshold() const 
Retrieve the threshold for time remaining to spin wait. 
 
void unserialize(CheckpointIn &cp) override
Unserialize an object. 
 
void serialize(CheckpointOut &cp) const override
Serialize an object. 
 
EventWrapper< Root,&Root::timeSync > syncEvent
 
uint64_t Tick
Tick count type. 
 
const Params * params() const 
 
const Time timeSyncPeriod() const 
Retrieve the period for the sync event. 
 
void loadState(CheckpointIn &cp) override
Schedule the timesync event at loadState() so that curTick is correct. 
 
bool timeSyncEnabled() const 
Check whether time syncing is enabled. 
 
void timeSyncEnable(bool en)
Enable or disable time syncing. 
 
std::ostream CheckpointOut
 
void initState() override
Schedule the timesync event at initState() when not unserializing. 
 
const SimObjectParams * _params
Cached copy of the object parameters. 
 
static Root * root()
Use this function to get a pointer to the single Root object in the simulation. 
 
Abstract superclass for simulation objects.