Go to the documentation of this file.
35 #include "debug/Checkpoint.hh"
57 Stats::Group(nullptr),
80 if (
cp.sectionExists(
name())) {
81 DPRINTF(Checkpoint,
"unserializing\n");
86 DPRINTF(Checkpoint,
"no checkpoint section found\n");
125 fatal(
"%s does not have any port named %s\n",
name(), if_name);
137 for (; ri != rend; ++ri) {
151 SimObject::debugObjectBreak(
const string &objs)
157 for (;
i != end; ++
i) {
159 obj->doDebugBreak = match.match(obj->
name());
164 debugObjectBreak(
const char *objs)
166 SimObject::debugObjectBreak(
string(objs));
176 for (;
i != end; ++
i) {
virtual void regProbeListeners()
Register probe listeners for this object.
#define fatal(...)
This implements a cprintf based fatal() function.
void unserializeSection(CheckpointIn &cp, const char *name)
Unserialize an a child object.
EventQueue * getEventQueue(uint32_t index)
Function for returning eventq queue for the provided index.
virtual void initState()
initState() is called on each SimObject when not restoring from a checkpoint.
static void serializeAll(CheckpointOut &cp)
Serialize all SimObjects in the system.
static SimObjectList simObjectList
List of all instantiated simulation objects.
int16_t PortID
Port index/ID type, and a symbolic name for an invalid port id.
void serializeSection(CheckpointOut &cp, const char *name) const
Serialize an object into a new section.
virtual void startup()
startup() is the final initialization call before simulation.
virtual Port & getPort(const std::string &if_name, PortID idx=InvalidPortID)
Get a port with a given name and index.
Ports are used to interface objects to each other.
const std::string & name()
ProbeManager * getProbeManager()
Get the probe manager for this object.
virtual const std::string name() const
virtual void regProbePoints()
Register probe points for this object.
virtual void loadState(CheckpointIn &cp)
loadState() is called on each SimObject when restoring from a checkpoint.
ProbeManager is a conduit class that lives on each SimObject, and is used to match up probe listeners...
Overload hash function for BasicBlockRange type.
SimObject(const Params *_params)
virtual void init()
init() is called after all C++ SimObjects have been created and all ports are connected.
std::ostream CheckpointOut
ProbeManager * probeManager
Manager coordinates hooking up probe points with listeners.
ObjectMatch contains a vector of expressions.
static SimObject * find(const char *name)
Find the SimObject with the given name and return a pointer to it.
Abstract superclass for simulation objects.
Generated on Wed Sep 30 2020 14:02:14 for gem5 by doxygen 1.8.17