|
gem5 [DEVELOP-FOR-25.0]
|
Model base class for a single uni-directional link. More...
#include <dist_etherlink.hh>
Public Member Functions | |
| Link (const std::string &name, DistEtherLink *p, EtherDump *d, Event *e) | |
| ~Link () | |
| const std::string | name () const |
| bool | busy () const |
| void | setLocalInt (LocalIface *i) |
| void | serialize (CheckpointOut &cp) const override |
| Serialize an object. | |
| void | unserialize (CheckpointIn &cp) override |
| Unserialize an object. | |
Public Member Functions inherited from gem5::Serializable | |
| Serializable () | |
| virtual | ~Serializable () |
| void | serializeSection (CheckpointOut &cp, const char *name) const |
| Serialize an object into a new section. | |
| void | serializeSection (CheckpointOut &cp, const std::string &name) const |
| void | unserializeSection (CheckpointIn &cp, const char *name) |
| Unserialize an a child object. | |
| void | unserializeSection (CheckpointIn &cp, const std::string &name) |
Protected Attributes | |
| std::string | objName |
| DistEtherLink * | parent |
| LocalIface * | localIface |
| EtherDump * | dump |
| DistIface * | distIface |
| Event * | event |
| EthPacketPtr | packet |
Additional Inherited Members | |
Static Public Member Functions inherited from gem5::Serializable | |
| static const std::string & | currentSection () |
| Gets the fully-qualified name of the active section. | |
| static void | generateCheckpointOut (const std::string &cpt_dir, std::ofstream &outstream) |
| Generate a checkpoint file so that the serialization can be routed to it. | |
Model base class for a single uni-directional link.
The link will encapsulate and transfer Ethernet packets to/from the message server.
Definition at line 81 of file dist_etherlink.hh.
|
inline |
Definition at line 93 of file dist_etherlink.hh.
References gem5::ArmISA::d, gem5::DistEtherLink::DistEtherLink(), distIface, dump, gem5::ArmISA::e, event, localIface, name(), objName, gem5::MipsISA::p, and parent.
Referenced by gem5::DistEtherLink::RxLink::RxLink(), and gem5::DistEtherLink::TxLink::TxLink().
|
inline |
Definition at line 98 of file dist_etherlink.hh.
|
inline |
Definition at line 101 of file dist_etherlink.hh.
References packet.
Referenced by gem5::DistEtherLink::RxLink::rxDone(), gem5::DistEtherLink::TxLink::transmit(), and gem5::DistEtherLink::TxLink::txDone().
|
inline |
Definition at line 100 of file dist_etherlink.hh.
References objName.
Referenced by Link(), gem5::DistEtherLink::RxLink::RxLink(), and gem5::DistEtherLink::TxLink::TxLink().
|
overridevirtual |
Serialize an object.
Output an object's state into the current checkpoint section.
| cp | Checkpoint state |
Implements gem5::Serializable.
Definition at line 210 of file dist_etherlink.cc.
References packet, and SERIALIZE_SCALAR.
|
inline |
Definition at line 102 of file dist_etherlink.hh.
References gem5::ArmISA::i, and localIface.
Referenced by gem5::DistEtherLink::LocalIface::LocalIface().
|
overridevirtual |
Unserialize an object.
Read an object's state from the current checkpoint section.
| cp | Checkpoint state |
Implements gem5::Serializable.
Definition at line 226 of file dist_etherlink.cc.
References event, packet, parent, and UNSERIALIZE_SCALAR.
|
protected |
Definition at line 88 of file dist_etherlink.hh.
Referenced by Link(), gem5::DistEtherLink::RxLink::rxDone(), gem5::DistEtherLink::RxLink::setDistInt(), gem5::DistEtherLink::TxLink::setDistInt(), and gem5::DistEtherLink::TxLink::transmit().
|
protected |
Definition at line 87 of file dist_etherlink.hh.
Referenced by Link(), gem5::DistEtherLink::RxLink::rxDone(), and gem5::DistEtherLink::TxLink::txDone().
|
protected |
Definition at line 89 of file dist_etherlink.hh.
Referenced by Link(), and unserialize().
|
protected |
Definition at line 86 of file dist_etherlink.hh.
Referenced by Link(), gem5::DistEtherLink::RxLink::rxDone(), setLocalInt(), and gem5::DistEtherLink::TxLink::txDone().
|
protected |
Definition at line 84 of file dist_etherlink.hh.
|
protected |
Definition at line 90 of file dist_etherlink.hh.
Referenced by busy(), gem5::DistEtherLink::RxLink::rxDone(), serialize(), gem5::DistEtherLink::TxLink::transmit(), gem5::DistEtherLink::TxLink::txDone(), and unserialize().
|
protected |
Definition at line 85 of file dist_etherlink.hh.
Referenced by Link(), gem5::DistEtherLink::TxLink::transmit(), and unserialize().