gem5 v24.0.0.0
Loading...
Searching...
No Matches
gem5::memory::qos::FifoQueuePolicy Class Reference

First In First Out Queue Policy. More...

#include <q_policy.hh>

Inheritance diagram for gem5::memory::qos::FifoQueuePolicy:
gem5::memory::qos::QueuePolicy

Public Member Functions

 FifoQueuePolicy (const QoSMemCtrlParams &p)
 
PacketQueue::iterator selectPacket (PacketQueue *queue) override
 Implements FCFS packet select policy.
 
- Public Member Functions inherited from gem5::memory::qos::QueuePolicy
virtual void enqueuePacket (PacketPtr pkt)
 This method is called by the memory controller after it enqueues a packet.
 
void setMemCtrl (MemCtrl *mem)
 Setting a pointer to the Memory Controller implementing the policy.
 
virtual ~QueuePolicy ()
 

Additional Inherited Members

- Public Types inherited from gem5::memory::qos::QueuePolicy
typedef std::deque< PacketPtrPacketQueue
 
- Static Public Member Functions inherited from gem5::memory::qos::QueuePolicy
static QueuePolicycreate (const QoSMemCtrlParams &p)
 This factory method is used for generating the queue policy.
 
- Protected Member Functions inherited from gem5::memory::qos::QueuePolicy
 QueuePolicy (const QoSMemCtrlParams &p)
 
- Protected Attributes inherited from gem5::memory::qos::QueuePolicy
MemCtrlmemCtrl
 Pointer to parent memory controller implementing the policy.
 

Detailed Description

First In First Out Queue Policy.

Definition at line 138 of file q_policy.hh.

Constructor & Destructor Documentation

◆ FifoQueuePolicy()

gem5::memory::qos::FifoQueuePolicy::FifoQueuePolicy ( const QoSMemCtrlParams & p)
inline

Definition at line 141 of file q_policy.hh.

Member Function Documentation

◆ selectPacket()

QueuePolicy::PacketQueue::iterator gem5::memory::qos::FifoQueuePolicy::selectPacket ( PacketQueue * queue)
overridevirtual

Implements FCFS packet select policy.

Parameters
queueThe non-empty queue from which to select a packet
Returns
Iterator to the selected packet

Implements gem5::memory::qos::QueuePolicy.

Definition at line 73 of file q_policy.cc.

References panic_if.


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

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