Go to the documentation of this file.
52 int num_entries,
int reserve,
int demand_reserve)
53 :
Queue<
MSHR>(_label, num_entries, reserve),
54 demandReserve(demand_reserve)
66 mshr->
allocate(blk_addr, blk_size, pkt, when_ready, order, alloc_on_fill);
87 mshr->
delay(delay_ticks);
89 [mshr] (
const MSHR* _mshr) {
90 return mshr->readyTime >= _mshr->readyTime;
129 return was_full && !
isFull();
int allocated
The number of currently allocated entries.
Iterator allocIter
Pointer to this MSHR on the allocated list.
MSHR ::List readyList
Holds pointers to entries that haven't been sent downstream.
MSHR ::Iterator addToReadyList(MSHR *entry)
int getNumTargets() const
Returns the current number of allocated targets.
bool forceDeallocateTarget(MSHR *mshr)
Deallocate top target, possibly freeing the MSHR.
void markInService(bool pending_modified_resp)
bool hasTargets() const
Returns true if there are targets left.
void markPending(MSHR *mshr)
Mark an in service entry as pending, used to resend a request.
uint64_t Tick
Tick count type.
void moveToFront(MSHR *mshr)
Moves the MSHR to the front of the pending list if it is not in service.
Iterator readyIter
Pointer to this MSHR on the ready list.
int64_t Counter
Statistics counter type.
bool promoteDeferredTargets()
void delay(MSHR *mshr, Tick delay_ticks)
Adds a delay to the provided MSHR and moves MSHRs that will be ready earlier than this entry to the t...
void popTarget()
Pop first target.
void deallocate(MSHR *entry)
Removes the given entry from the queue.
MSHR ::List freeList
Holds non allocated entries.
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
MSHR * allocate(Addr blk_addr, unsigned blk_size, PacketPtr pkt, Tick when_ready, Counter order, bool alloc_on_fill)
Allocates a new MSHR for the request and size.
bool inService
True if the entry has been sent downstream.
A Packet is used to encapsulate a transfer between two objects in the memory system (e....
A high-level queue interface, to be used by both the MSHR queue and the write buffer.
MSHR ::List allocatedList
Holds pointers to all allocated entries.
int _numInService
The number of entries that are in service.
MSHRQueue(const std::string &_label, int num_entries, int reserve, int demand_reserve)
Create a queue with a given number of entries.
void allocate(Addr blk_addr, unsigned blk_size, PacketPtr pkt, Tick when_ready, Counter _order, bool alloc_on_fill)
Allocate a miss to this MSHR.
void delay(Tick delay_ticks)
Adds a delay relative to the current tick to the current MSHR.
void markInService(MSHR *mshr, bool pending_modified_resp)
Mark the given MSHR as in service.
Miss Status and handling Register.
Generated on Wed Sep 30 2020 14:02:12 for gem5 by doxygen 1.8.17