5cfff7d5bb
Intended Use: A SimObject will call the serializer when it needs the state to be serializable (i.e. switchCPUs, checkpoint, switch memory access model). It will call the requestSeialization() function. The Serializer will signal all the objects in its list to drain their state via the SimObject method drain(). Drain() has a default implementation to just signal done. When each object is drained it will signal the Serializer that it has drained via the signalDrained() function. The Serializer will collect these signals, when all have drained it will signal the initial requestor via serializationComplete() method in the SimObject. Once that object is done, it will signal the Serializer to resumeExecution(). The Serializer will signal all the objects in its list to resume via the resume() method on the SimObject. SConscript: Add serializer object to build list sim/sim_object.cc: Add default behavior for drain (just signal finished, must be overided if you really must drain something) sim/sim_object.hh: Add functions for serializer --HG-- extra : convert_revision : 15aa2d1b42010c2d703bef9114c11d079c216170 |
||
---|---|---|
.. | ||
async.hh | ||
builder.cc | ||
builder.hh | ||
byteswap.hh | ||
debug.cc | ||
debug.hh | ||
eventq.cc | ||
eventq.hh | ||
faults.cc | ||
faults.hh | ||
host.hh | ||
main.cc | ||
param.cc | ||
param.hh | ||
process.cc | ||
process.hh | ||
pseudo_inst.cc | ||
pseudo_inst.hh | ||
root.cc | ||
serialize.cc | ||
serialize.hh | ||
sim_events.cc | ||
sim_events.hh | ||
sim_exit.hh | ||
sim_object.cc | ||
sim_object.hh | ||
startup.cc | ||
startup.hh | ||
stat_control.cc | ||
stat_control.hh | ||
stats.hh | ||
syscall_emul.cc | ||
syscall_emul.hh | ||
system.cc | ||
system.hh | ||
vptr.hh |