53 int num_entries,
int reserve,
int demand_reserve)
54 :
Queue<
MSHR>(_label, num_entries, reserve),
55 demandReserve(demand_reserve)
64 assert(mshr->getNumTargets() == 0);
67 mshr->allocate(blk_addr, blk_size, pkt, when_ready, order, alloc_on_fill);
119 return was_full && !
isFull();
Iterator readyIter
Pointer to this MSHR on the ready list.
bool inService
True if the entry has been sent downstream.
MSHR::List readyList
Holds pointers to entries that haven't been sent downstream.
bool forceDeallocateTarget(MSHR *mshr)
Deallocate top target, possibly freeing the MSHR.
MSHR::Iterator addToReadyList(MSHR *entry)
void moveToFront(MSHR *mshr)
Moves the MSHR to the front of the pending list if it is not in service.
Declaration of a structure to manage MSHRs.
A high-level queue interface, to be used by both the MSHR queue and the write buffer.
void markPending(MSHR *mshr)
Mark an in service entry as pending, used to resend a request.
void deallocate(MSHR *entry)
Removes the given entry from the queue.
void popTarget()
Pop first target.
void markInService(bool pending_modified_resp)
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.
uint64_t Tick
Tick count type.
bool hasTargets() const
Returns true if there are targets left.
Miss Status and handling Register.
void markInService(MSHR *mshr, bool pending_modified_resp)
Mark the given MSHR as in service.
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
int64_t Counter
Statistics counter type.
A Packet is used to encapsulate a transfer between two objects in the memory system (e...
MSHR::List freeList
Holds non allocated entries.
MSHRQueue(const std::string &_label, int num_entries, int reserve, int demand_reserve)
Create a queue with a given number of entries.
bool promoteDeferredTargets()
MSHR::List allocatedList
Holds pointers to all allocated entries.
int _numInService
The number of entries that are in service.
int allocated
The number of currently allocated entries.