gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Attributes | List of all members
SnoopRespPacketQueue Class Reference

#include <packet_queue.hh>

Inheritance diagram for SnoopRespPacketQueue:
PacketQueue Drainable

Public Member Functions

 SnoopRespPacketQueue (EventManager &_em, MasterPort &_masterPort, const std::string _label="SnoopRespPacketQueue")
 Create a snoop response packet queue, linked to an event manager, a master port, and a label that will be used for functional print request packets. More...
 
virtual ~SnoopRespPacketQueue ()
 
const std::string name () const
 Provide a name to simplify debugging. More...
 
bool sendTiming (PacketPtr pkt)
 Send a packet using the appropriate method for the specific subclass (reuest, response or snoop response). More...
 
- Public Member Functions inherited from PacketQueue
size_t size () const
 Get the size of the queue. More...
 
Tick deferredPacketReadyTime () const
 Get the next packet ready time. More...
 
bool hasAddr (Addr addr) const
 Check if a packets address exists in the queue. More...
 
bool checkFunctional (PacketPtr pkt)
 Check the list of buffered packets against the supplied functional request. More...
 
void schedSendEvent (Tick when)
 Schedule a send event if we are not already waiting for a retry. More...
 
void schedSendTiming (PacketPtr pkt, Tick when, bool force_order=false)
 Add a packet to the transmit list, and schedule a send event. More...
 
void retry ()
 Retry sending a packet from the queue. More...
 
void disableSanityCheck ()
 This allows a user to explicitly disable the sanity check on the size of the transmitList, which is enabled by default. More...
 
DrainState drain () override
 Notify an object that it needs to drain its state. More...
 
- Public Member Functions inherited from Drainable
DrainState drainState () const
 Return the current drain state of an object. More...
 
virtual void notifyFork ()
 Notify a child process of a fork. More...
 

Protected Attributes

MasterPortmasterPort
 
- Protected Attributes inherited from PacketQueue
const std::string label
 Label to use for print request packets label stack. More...
 
bool waitingOnRetry
 Remember whether we're awaiting a retry. More...
 

Additional Inherited Members

- Protected Member Functions inherited from PacketQueue
bool deferredPacketReady () const
 Check whether we have a packet ready to go on the transmit list. More...
 
virtual void sendDeferredPacket ()
 Attempt to send a packet. More...
 
 PacketQueue (EventManager &_em, const std::string &_label, bool disable_sanity_check=false)
 Create a packet queue, linked to an event manager, and a label that will be used for functional print request packets. More...
 
virtual ~PacketQueue ()
 Virtual desctructor since the class may be used as a base class. More...
 
- Protected Member Functions inherited from Drainable
 Drainable ()
 
virtual ~Drainable ()
 
virtual void drainResume ()
 Resume execution after a successful drain. More...
 
void signalDrainDone () const
 Signal that an object is drained. More...
 

Detailed Description

Definition at line 241 of file packet_queue.hh.

Constructor & Destructor Documentation

SnoopRespPacketQueue::SnoopRespPacketQueue ( EventManager _em,
MasterPort _masterPort,
const std::string  _label = "SnoopRespPacketQueue" 
)

Create a snoop response packet queue, linked to an event manager, a master port, and a label that will be used for functional print request packets.

Parameters
_emEvent manager used for scheduling this queue
_masterPortMaster port used to send the packets
_labelLabel to push on the label stack for print request packets

Definition at line 250 of file packet_queue.cc.

virtual SnoopRespPacketQueue::~SnoopRespPacketQueue ( )
inlinevirtual

Definition at line 262 of file packet_queue.hh.

Member Function Documentation

const std::string SnoopRespPacketQueue::name ( ) const
inlinevirtual

Provide a name to simplify debugging.

Returns
A complete name, appended to module and port

Implements PacketQueue.

Definition at line 264 of file packet_queue.hh.

References PacketQueue::label, masterPort, and Port::name().

bool SnoopRespPacketQueue::sendTiming ( PacketPtr  pkt)
virtual

Send a packet using the appropriate method for the specific subclass (reuest, response or snoop response).

Implements PacketQueue.

Definition at line 258 of file packet_queue.cc.

References masterPort, and MasterPort::sendTimingSnoopResp().

Member Data Documentation

MasterPort& SnoopRespPacketQueue::masterPort
protected

Definition at line 246 of file packet_queue.hh.

Referenced by name(), and sendTiming().


The documentation for this class was generated from the following files:

Generated on Fri Jun 9 2017 13:04:19 for gem5 by doxygen 1.8.6