gem5 v24.0.0.0
Loading...
Searching...
No Matches
gem5::ruby::MessageBuffer Class Reference

#include <MessageBuffer.hh>

Inheritance diagram for gem5::ruby::MessageBuffer:
gem5::SimObject gem5::EventManager gem5::Serializable gem5::Drainable gem5::statistics::Group gem5::Named

Public Types

typedef MessageBufferParams Params
 
- Public Types inherited from gem5::SimObject
typedef SimObjectParams Params
 

Public Member Functions

 MessageBuffer (const Params &p)
 
void reanalyzeMessages (Addr addr, Tick current_time)
 
void reanalyzeAllMessages (Tick current_time)
 
void stallMessage (Addr addr, Tick current_time)
 
bool hasStalledMsg (Addr addr) const
 
bool isReady (Tick current_time) const
 
Tick readyTime () const
 
void delayHead (Tick current_time, Tick delta)
 
bool areNSlotsAvailable (unsigned int n, Tick curTime)
 
int getPriority ()
 
void setPriority (int rank)
 
void setConsumer (Consumer *consumer)
 
ConsumergetConsumer ()
 
bool getOrdered ()
 
const Messagepeek () const
 Function for extracting the message at the head of the message queue.
 
const MsgPtrpeekMsgPtr () const
 
void enqueue (MsgPtr message, Tick curTime, Tick delta, bool bypassStrictFIFO=false)
 
void deferEnqueueingMessage (Addr addr, MsgPtr message)
 
void enqueueDeferredMessages (Addr addr, Tick curTime, Tick delay)
 
bool isDeferredMsgMapEmpty (Addr addr) const
 
Tick dequeue (Tick current_time, bool decrement_messages=true)
 Updates the delay cycles of the message at the head of the queue, removes it from the queue and returns its total delay.
 
void registerDequeueCallback (std::function< void()> callback)
 
void unregisterDequeueCallback ()
 
void recycle (Tick current_time, Tick recycle_latency)
 
bool isEmpty () const
 
bool isStallMapEmpty ()
 
unsigned int getStallMapSize ()
 
unsigned int getSize (Tick curTime)
 
void clear ()
 
void print (std::ostream &out) const
 
void clearStats ()
 
void setIncomingLink (int link_id)
 
void setVnet (int net)
 
int getIncomingLink () const
 
int getVnet () const
 
PortgetPort (const std::string &, PortID idx=InvalidPortID) override
 Get a port with a given name and index.
 
uint32_t functionalWrite (Packet *pkt)
 
bool functionalRead (Packet *pkt)
 
bool functionalRead (Packet *pkt, WriteMask &mask)
 
int routingPriority () const
 
- Public Member Functions inherited from gem5::SimObject
const Paramsparams () const
 
 SimObject (const Params &p)
 
virtual ~SimObject ()
 
virtual void init ()
 init() is called after all C++ SimObjects have been created and all ports are connected.
 
virtual void loadState (CheckpointIn &cp)
 loadState() is called on each SimObject when restoring from a checkpoint.
 
virtual void initState ()
 initState() is called on each SimObject when not restoring from a checkpoint.
 
virtual void regProbePoints ()
 Register probe points for this object.
 
virtual void regProbeListeners ()
 Register probe listeners for this object.
 
ProbeManagergetProbeManager ()
 Get the probe manager for this object.
 
virtual void startup ()
 startup() is the final initialization call before simulation.
 
DrainState drain () override
 Provide a default implementation of the drain interface for objects that don't need draining.
 
virtual void memWriteback ()
 Write back dirty buffers to memory using functional writes.
 
virtual void memInvalidate ()
 Invalidate the contents of memory buffers.
 
void serialize (CheckpointOut &cp) const override
 Serialize an object.
 
void unserialize (CheckpointIn &cp) override
 Unserialize an object.
 
- Public Member Functions inherited from gem5::EventManager
EventQueueeventQueue () const
 
void schedule (Event &event, Tick when)
 
void deschedule (Event &event)
 
void reschedule (Event &event, Tick when, bool always=false)
 
void schedule (Event *event, Tick when)
 
void deschedule (Event *event)
 
void reschedule (Event *event, Tick when, bool always=false)
 
void wakeupEventQueue (Tick when=(Tick) -1)
 This function is not needed by the usual gem5 event loop but may be necessary in derived EventQueues which host gem5 on other schedulers.
 
void setCurTick (Tick newVal)
 
 EventManager (EventManager &em)
 Event manger manages events in the event queue.
 
 EventManager (EventManager *em)
 
 EventManager (EventQueue *eq)
 
- 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)
 
- Public Member Functions inherited from gem5::Drainable
DrainState drainState () const
 Return the current drain state of an object.
 
virtual void notifyFork ()
 Notify a child process of a fork.
 
- Public Member Functions inherited from gem5::statistics::Group
 Group (Group *parent, const char *name=nullptr)
 Construct a new statistics group.
 
virtual ~Group ()
 
virtual void regStats ()
 Callback to set stat parameters.
 
virtual void resetStats ()
 Callback to reset stats.
 
virtual void preDumpStats ()
 Callback before stats are dumped.
 
void addStat (statistics::Info *info)
 Register a stat with this group.
 
const std::map< std::string, Group * > & getStatGroups () const
 Get all child groups associated with this object.
 
const std::vector< Info * > & getStats () const
 Get all stats associated with this object.
 
void addStatGroup (const char *name, Group *block)
 Add a stat block as a child of this block.
 
const InforesolveStat (std::string name) const
 Resolve a stat by its name within this group.
 
void mergeStatGroup (Group *block)
 Merge the contents (stats & children) of a block to this block.
 
 Group ()=delete
 
 Group (const Group &)=delete
 
Groupoperator= (const Group &)=delete
 
- Public Member Functions inherited from gem5::Named
 Named (const std::string &name_)
 
virtual ~Named ()=default
 
virtual std::string name () const
 

Private Types

typedef std::map< Addr, std::list< MsgPtr > > StallMsgMapType
 
typedef std::unordered_map< Addr, std::vector< MsgPtr > > DeferredMsgMapType
 A map from line addresses to corresponding vectors of messages that are deferred for enqueueing.
 

Private Member Functions

void reanalyzeList (std::list< MsgPtr > &, Tick)
 
uint32_t functionalAccess (Packet *pkt, bool is_read, WriteMask *mask)
 

Private Attributes

Consumerm_consumer
 Consumer to signal a wakeup(), can be NULL.
 
std::vector< MsgPtrm_prio_heap
 
std::function< void()> m_dequeue_callback
 
StallMsgMapType m_stall_msg_map
 A map from line addresses to lists of stalled messages for that line.
 
DeferredMsgMapType m_deferred_msg_map
 
int m_stall_map_size
 Current size of the stall map.
 
const unsigned int m_max_size
 The maximum capacity.
 
const unsigned int m_max_dequeue_rate
 When != 0, isReady returns false once m_max_dequeue_rate messages have been dequeued in the same cycle.
 
unsigned int m_dequeues_this_cy
 
Tick m_time_last_time_size_checked
 
unsigned int m_size_last_time_size_checked
 
Tick m_time_last_time_enqueue
 
Tick m_time_last_time_pop
 
Tick m_last_arrival_time
 
unsigned int m_size_at_cycle_start
 
unsigned int m_stalled_at_cycle_start
 
unsigned int m_msgs_this_cycle
 
uint64_t m_msg_counter
 
int m_priority_rank
 
bool m_last_message_strict_fifo_bypassed
 
const bool m_strict_fifo
 
const MessageRandomization m_randomization
 
const bool m_allow_zero_latency
 
const int m_routing_priority
 
int m_input_link_id
 
int m_vnet_id
 
statistics::Scalar m_not_avail_count
 
statistics::Scalar m_msg_count
 
statistics::Average m_buf_msgs
 
statistics::Scalar m_stall_time
 
statistics::Scalar m_stall_count
 
statistics::Formula m_avg_stall_time
 
statistics::Formula m_occupancy
 

Additional Inherited Members

- Static Public Member Functions inherited from gem5::SimObject
static void serializeAll (const std::string &cpt_dir)
 Create a checkpoint by serializing all SimObjects in the system.
 
static SimObjectfind (const char *name)
 Find the SimObject with the given name and return a pointer to it.
 
static void setSimObjectResolver (SimObjectResolver *resolver)
 There is a single object name resolver, and it is only set when simulation is restoring from checkpoints.
 
static SimObjectResolvergetSimObjectResolver ()
 There is a single object name resolver, and it is only set when simulation is restoring from checkpoints.
 
- 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.
 
- Protected Member Functions inherited from gem5::Drainable
 Drainable ()
 
virtual ~Drainable ()
 
virtual void drainResume ()
 Resume execution after a successful drain.
 
void signalDrainDone () const
 Signal that an object is drained.
 
- Protected Attributes inherited from gem5::SimObject
const SimObjectParams & _params
 Cached copy of the object parameters.
 
- Protected Attributes inherited from gem5::EventManager
EventQueueeventq
 A pointer to this object's event queue.
 

Detailed Description

Definition at line 74 of file MessageBuffer.hh.

Member Typedef Documentation

◆ DeferredMsgMapType

typedef std::unordered_map<Addr, std::vector<MsgPtr> > gem5::ruby::MessageBuffer::DeferredMsgMapType
private

A map from line addresses to corresponding vectors of messages that are deferred for enqueueing.

Messages in this map are waiting to be enqueued into the message buffer.

Definition at line 233 of file MessageBuffer.hh.

◆ Params

typedef MessageBufferParams gem5::ruby::MessageBuffer::Params

Definition at line 77 of file MessageBuffer.hh.

◆ StallMsgMapType

Definition at line 211 of file MessageBuffer.hh.

Constructor & Destructor Documentation

◆ MessageBuffer()

Member Function Documentation

◆ areNSlotsAvailable()

◆ clear()

void gem5::ruby::MessageBuffer::clear ( )

◆ clearStats()

void gem5::ruby::MessageBuffer::clearStats ( )
inline

Definition at line 157 of file MessageBuffer.hh.

References m_msg_counter, and m_not_avail_count.

◆ deferEnqueueingMessage()

void gem5::ruby::MessageBuffer::deferEnqueueingMessage ( Addr addr,
MsgPtr message )

Definition at line 474 of file MessageBuffer.cc.

References gem5::X86ISA::addr, DPRINTF, and m_deferred_msg_map.

◆ delayHead()

void gem5::ruby::MessageBuffer::delayHead ( Tick current_time,
Tick delta )
inline

Definition at line 93 of file MessageBuffer.hh.

References enqueue(), gem5::ArmISA::m, and m_prio_heap.

◆ dequeue()

Tick gem5::ruby::MessageBuffer::dequeue ( Tick current_time,
bool decrement_messages = true )

Updates the delay cycles of the message at the head of the queue, removes it from the queue and returns its total delay.

Definition at line 304 of file MessageBuffer.cc.

References gem5::curTick(), DPRINTF, isReady(), m_buf_msgs, m_dequeue_callback, m_dequeues_this_cy, m_msg_count, m_prio_heap, m_size_at_cycle_start, m_stall_map_size, m_stall_time, m_stalled_at_cycle_start, and m_time_last_time_pop.

Referenced by gem5::ruby::PerfectSwitch::operateMessageBuffer(), gem5::ruby::Throttle::operateVnet(), and stallMessage().

◆ enqueue()

◆ enqueueDeferredMessages()

void gem5::ruby::MessageBuffer::enqueueDeferredMessages ( Addr addr,
Tick curTime,
Tick delay )

◆ functionalAccess()

uint32_t gem5::ruby::MessageBuffer::functionalAccess ( Packet * pkt,
bool is_read,
WriteMask * mask )
private

◆ functionalRead() [1/2]

bool gem5::ruby::MessageBuffer::functionalRead ( Packet * pkt)
inline

◆ functionalRead() [2/2]

bool gem5::ruby::MessageBuffer::functionalRead ( Packet * pkt,
WriteMask & mask )
inline

Definition at line 189 of file MessageBuffer.hh.

References functionalAccess(), and gem5::ArmISA::mask.

◆ functionalWrite()

uint32_t gem5::ruby::MessageBuffer::functionalWrite ( Packet * pkt)
inline

Definition at line 174 of file MessageBuffer.hh.

References functionalAccess().

◆ getConsumer()

Consumer * gem5::ruby::MessageBuffer::getConsumer ( )
inline

Definition at line 116 of file MessageBuffer.hh.

References m_consumer.

◆ getIncomingLink()

int gem5::ruby::MessageBuffer::getIncomingLink ( ) const
inline

Definition at line 162 of file MessageBuffer.hh.

References m_input_link_id.

Referenced by gem5::ruby::PerfectSwitch::operateMessageBuffer().

◆ getOrdered()

bool gem5::ruby::MessageBuffer::getOrdered ( )
inline

Definition at line 118 of file MessageBuffer.hh.

References m_strict_fifo.

◆ getPort()

Port & gem5::ruby::MessageBuffer::getPort ( const std::string & if_name,
PortID idx = InvalidPortID )
inlineoverridevirtual

Get a port with a given name and index.

This is used at binding time and returns a reference to a protocol-agnostic port.

gem5 has a request and response port interface. All memory objects are connected together via ports. These ports provide a rigid interface between these memory objects. These ports implement three different memory system modes: timing, atomic, and functional. The most important mode is the timing mode and here timing mode is used for conducting cycle-level timing experiments. The other modes are only used in special circumstances and should not be used to conduct cycle-level timing experiments. The other modes are only used in special circumstances. These ports allow SimObjects to communicate with each other.

Parameters
if_namePort name
idxIndex in the case of a VectorPort
Returns
A reference to the given port

Reimplemented from gem5::SimObject.

Definition at line 166 of file MessageBuffer.hh.

References gem5::ruby::RubyDummyPort::instance().

◆ getPriority()

int gem5::ruby::MessageBuffer::getPriority ( )
inline

Definition at line 103 of file MessageBuffer.hh.

References m_priority_rank.

◆ getSize()

unsigned int gem5::ruby::MessageBuffer::getSize ( Tick curTime)

◆ getStallMapSize()

unsigned int gem5::ruby::MessageBuffer::getStallMapSize ( )
inline

Definition at line 151 of file MessageBuffer.hh.

References m_stall_msg_map.

◆ getVnet()

int gem5::ruby::MessageBuffer::getVnet ( ) const
inline

Definition at line 163 of file MessageBuffer.hh.

References m_vnet_id.

◆ hasStalledMsg()

bool gem5::ruby::MessageBuffer::hasStalledMsg ( Addr addr) const

Definition at line 468 of file MessageBuffer.cc.

References gem5::X86ISA::addr, and m_stall_msg_map.

◆ isDeferredMsgMapEmpty()

bool gem5::ruby::MessageBuffer::isDeferredMsgMapEmpty ( Addr addr) const

Definition at line 498 of file MessageBuffer.cc.

References gem5::X86ISA::addr, and m_deferred_msg_map.

Referenced by enqueueDeferredMessages().

◆ isEmpty()

bool gem5::ruby::MessageBuffer::isEmpty ( ) const
inline

Definition at line 149 of file MessageBuffer.hh.

References m_prio_heap.

◆ isReady()

◆ isStallMapEmpty()

bool gem5::ruby::MessageBuffer::isStallMapEmpty ( )
inline

Definition at line 150 of file MessageBuffer.hh.

References m_stall_msg_map.

◆ peek()

const Message * gem5::ruby::MessageBuffer::peek ( ) const

Function for extracting the message at the head of the message queue.

The function assumes that the queue is nonempty.

Definition at line 195 of file MessageBuffer.cc.

References DPRINTF, and m_prio_heap.

◆ peekMsgPtr()

const MsgPtr & gem5::ruby::MessageBuffer::peekMsgPtr ( ) const
inline

◆ print()

void gem5::ruby::MessageBuffer::print ( std::ostream & out) const

Definition at line 504 of file MessageBuffer.cc.

References gem5::ccprintf(), m_consumer, m_prio_heap, and gem5::Named::name().

Referenced by gem5::ruby::operator<<().

◆ readyTime()

Tick gem5::ruby::MessageBuffer::readyTime ( ) const

Definition at line 533 of file MessageBuffer.cc.

References m_prio_heap, and gem5::MaxTick.

Referenced by gem5::ruby::PerfectSwitch::operateVnet().

◆ reanalyzeAllMessages()

void gem5::ruby::MessageBuffer::reanalyzeAllMessages ( Tick current_time)

Definition at line 426 of file MessageBuffer.cc.

References DPRINTF, m_stall_map_size, m_stall_msg_map, and reanalyzeList().

◆ reanalyzeList()

void gem5::ruby::MessageBuffer::reanalyzeList ( std::list< MsgPtr > & lt,
Tick schdTick )
private

◆ reanalyzeMessages()

void gem5::ruby::MessageBuffer::reanalyzeMessages ( Addr addr,
Tick current_time )

◆ recycle()

void gem5::ruby::MessageBuffer::recycle ( Tick current_time,
Tick recycle_latency )

◆ registerDequeueCallback()

void gem5::ruby::MessageBuffer::registerDequeueCallback ( std::function< void()> callback)

Definition at line 347 of file MessageBuffer.cc.

References m_dequeue_callback.

◆ routingPriority()

int gem5::ruby::MessageBuffer::routingPriority ( ) const
inline

Definition at line 194 of file MessageBuffer.hh.

References m_routing_priority.

Referenced by gem5::ruby::PerfectSwitch::updatePriorityGroups().

◆ setConsumer()

void gem5::ruby::MessageBuffer::setConsumer ( Consumer * consumer)
inline

Definition at line 105 of file MessageBuffer.hh.

References DPRINTF, fatal, and m_consumer.

Referenced by gem5::ruby::Throttle::addLinks(), and gem5::ruby::AbstractController::init().

◆ setIncomingLink()

void gem5::ruby::MessageBuffer::setIncomingLink ( int link_id)
inline

Definition at line 159 of file MessageBuffer.hh.

References m_input_link_id.

◆ setPriority()

void gem5::ruby::MessageBuffer::setPriority ( int rank)
inline

Definition at line 104 of file MessageBuffer.hh.

References m_priority_rank.

◆ setVnet()

void gem5::ruby::MessageBuffer::setVnet ( int net)
inline

Definition at line 160 of file MessageBuffer.hh.

References m_vnet_id.

◆ stallMessage()

void gem5::ruby::MessageBuffer::stallMessage ( Addr addr,
Tick current_time )

◆ unregisterDequeueCallback()

void gem5::ruby::MessageBuffer::unregisterDequeueCallback ( )

Definition at line 353 of file MessageBuffer.cc.

References m_dequeue_callback.

Member Data Documentation

◆ m_allow_zero_latency

const bool gem5::ruby::MessageBuffer::m_allow_zero_latency
private

Definition at line 280 of file MessageBuffer.hh.

Referenced by enqueue().

◆ m_avg_stall_time

statistics::Formula gem5::ruby::MessageBuffer::m_avg_stall_time
private

Definition at line 293 of file MessageBuffer.hh.

Referenced by MessageBuffer().

◆ m_buf_msgs

statistics::Average gem5::ruby::MessageBuffer::m_buf_msgs
private

Definition at line 290 of file MessageBuffer.hh.

Referenced by dequeue(), enqueue(), and MessageBuffer().

◆ m_consumer

Consumer* gem5::ruby::MessageBuffer::m_consumer
private

Consumer to signal a wakeup(), can be NULL.

Definition at line 204 of file MessageBuffer.hh.

Referenced by enqueue(), getConsumer(), isReady(), MessageBuffer(), print(), reanalyzeList(), recycle(), and setConsumer().

◆ m_deferred_msg_map

DeferredMsgMapType gem5::ruby::MessageBuffer::m_deferred_msg_map
private

◆ m_dequeue_callback

std::function<void()> gem5::ruby::MessageBuffer::m_dequeue_callback
private

◆ m_dequeues_this_cy

unsigned int gem5::ruby::MessageBuffer::m_dequeues_this_cy
private

Definition at line 258 of file MessageBuffer.hh.

Referenced by dequeue(), and isReady().

◆ m_input_link_id

int gem5::ruby::MessageBuffer::m_input_link_id
private

Definition at line 284 of file MessageBuffer.hh.

Referenced by getIncomingLink(), MessageBuffer(), and setIncomingLink().

◆ m_last_arrival_time

Tick gem5::ruby::MessageBuffer::m_last_arrival_time
private

Definition at line 267 of file MessageBuffer.hh.

Referenced by enqueue().

◆ m_last_message_strict_fifo_bypassed

bool gem5::ruby::MessageBuffer::m_last_message_strict_fifo_bypassed
private

Definition at line 276 of file MessageBuffer.hh.

Referenced by enqueue().

◆ m_max_dequeue_rate

const unsigned int gem5::ruby::MessageBuffer::m_max_dequeue_rate
private

When != 0, isReady returns false once m_max_dequeue_rate messages have been dequeued in the same cycle.

Definition at line 256 of file MessageBuffer.hh.

Referenced by isReady().

◆ m_max_size

const unsigned int gem5::ruby::MessageBuffer::m_max_size
private

The maximum capacity.

For finite-sized buffers, m_max_size stores a number greater than 0 to indicate the maximum allowed number of messages in the buffer at any time. To get infinitely-sized buffers, set buffer size: m_max_size = 0

Definition at line 250 of file MessageBuffer.hh.

Referenced by areNSlotsAvailable(), enqueue(), and MessageBuffer().

◆ m_msg_count

statistics::Scalar gem5::ruby::MessageBuffer::m_msg_count
private

Definition at line 289 of file MessageBuffer.hh.

Referenced by dequeue(), and MessageBuffer().

◆ m_msg_counter

uint64_t gem5::ruby::MessageBuffer::m_msg_counter
private

Definition at line 273 of file MessageBuffer.hh.

Referenced by clear(), clearStats(), enqueue(), and MessageBuffer().

◆ m_msgs_this_cycle

unsigned int gem5::ruby::MessageBuffer::m_msgs_this_cycle
private

Definition at line 271 of file MessageBuffer.hh.

Referenced by areNSlotsAvailable(), clear(), enqueue(), and MessageBuffer().

◆ m_not_avail_count

statistics::Scalar gem5::ruby::MessageBuffer::m_not_avail_count
private

Definition at line 288 of file MessageBuffer.hh.

Referenced by areNSlotsAvailable(), clearStats(), and MessageBuffer().

◆ m_occupancy

statistics::Formula gem5::ruby::MessageBuffer::m_occupancy
private

Definition at line 294 of file MessageBuffer.hh.

Referenced by MessageBuffer().

◆ m_prio_heap

◆ m_priority_rank

int gem5::ruby::MessageBuffer::m_priority_rank
private

Definition at line 274 of file MessageBuffer.hh.

Referenced by getPriority(), MessageBuffer(), and setPriority().

◆ m_randomization

const MessageRandomization gem5::ruby::MessageBuffer::m_randomization
private

Definition at line 279 of file MessageBuffer.hh.

Referenced by enqueue().

◆ m_routing_priority

const int gem5::ruby::MessageBuffer::m_routing_priority
private

Definition at line 282 of file MessageBuffer.hh.

Referenced by routingPriority().

◆ m_size_at_cycle_start

unsigned int gem5::ruby::MessageBuffer::m_size_at_cycle_start
private

Definition at line 269 of file MessageBuffer.hh.

Referenced by areNSlotsAvailable(), clear(), dequeue(), and MessageBuffer().

◆ m_size_last_time_size_checked

unsigned int gem5::ruby::MessageBuffer::m_size_last_time_size_checked
private

Definition at line 261 of file MessageBuffer.hh.

Referenced by getSize(), and MessageBuffer().

◆ m_stall_count

statistics::Scalar gem5::ruby::MessageBuffer::m_stall_count
private

Definition at line 292 of file MessageBuffer.hh.

Referenced by MessageBuffer(), and stallMessage().

◆ m_stall_map_size

int gem5::ruby::MessageBuffer::m_stall_map_size
private

Current size of the stall map.

Track the number of messages held in stall map lists. This is used to ensure that if the buffer is finite-sized, it blocks further requests when the m_prio_heap and m_stall_msg_map contain m_max_size messages.

Definition at line 242 of file MessageBuffer.hh.

Referenced by areNSlotsAvailable(), dequeue(), enqueue(), reanalyzeAllMessages(), reanalyzeMessages(), and stallMessage().

◆ m_stall_msg_map

StallMsgMapType gem5::ruby::MessageBuffer::m_stall_msg_map
private

A map from line addresses to lists of stalled messages for that line.

If this buffer allows the receiver to stall messages, on a stall request, the stalled message is removed from the m_prio_heap and placed in the m_stall_msg_map. Messages are held there until the receiver requests they be reanalyzed, at which point they are moved back to m_prio_heap.

NOTE: The stall map holds messages in the order in which they were initially received, and when a line is unblocked, the messages are moved back to the m_prio_heap in the same order. This prevents starving older requests with younger ones.

Definition at line 226 of file MessageBuffer.hh.

Referenced by functionalAccess(), getStallMapSize(), hasStalledMsg(), isStallMapEmpty(), MessageBuffer(), reanalyzeAllMessages(), reanalyzeMessages(), and stallMessage().

◆ m_stall_time

statistics::Scalar gem5::ruby::MessageBuffer::m_stall_time
private

Definition at line 291 of file MessageBuffer.hh.

Referenced by dequeue(), and MessageBuffer().

◆ m_stalled_at_cycle_start

unsigned int gem5::ruby::MessageBuffer::m_stalled_at_cycle_start
private

Definition at line 270 of file MessageBuffer.hh.

Referenced by areNSlotsAvailable(), clear(), dequeue(), and MessageBuffer().

◆ m_strict_fifo

const bool gem5::ruby::MessageBuffer::m_strict_fifo
private

Definition at line 278 of file MessageBuffer.hh.

Referenced by enqueue(), and getOrdered().

◆ m_time_last_time_enqueue

Tick gem5::ruby::MessageBuffer::m_time_last_time_enqueue
private

Definition at line 265 of file MessageBuffer.hh.

Referenced by areNSlotsAvailable(), clear(), and enqueue().

◆ m_time_last_time_pop

Tick gem5::ruby::MessageBuffer::m_time_last_time_pop
private

Definition at line 266 of file MessageBuffer.hh.

Referenced by areNSlotsAvailable(), clear(), dequeue(), and isReady().

◆ m_time_last_time_size_checked

Tick gem5::ruby::MessageBuffer::m_time_last_time_size_checked
private

Definition at line 260 of file MessageBuffer.hh.

Referenced by getSize().

◆ m_vnet_id

int gem5::ruby::MessageBuffer::m_vnet_id
private

Definition at line 285 of file MessageBuffer.hh.

Referenced by enqueue(), getVnet(), MessageBuffer(), and setVnet().


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

Generated on Tue Jun 18 2024 16:24:22 for gem5 by doxygen 1.11.0