46 #ifndef __MEM_CACHE_WRITE_QUEUE_ENTRY_HH__ 47 #define __MEM_CACHE_WRITE_QUEUE_ENTRY_HH__ 71 template<
typename Entry>
83 void print(std::ostream &
os,
int verbosity,
84 const std::string &prefix)
const;
138 {
return targets.size(); }
153 return &targets.front();
171 const std::string &prefix =
"")
const override;
178 std::string
print()
const;
185 #endif // __MEM_CACHE_WRITE_QUEUE_ENTRY_HH__
TargetList targets
List of all requests that match the address.
void print(std::ostream &os, int verbosity, const std::string &prefix) const
A write queue for all eviction packets, i.e.
WriteQueueEntry()
A simple constructor.
List::iterator Iterator
WriteQueueEntry list iterator.
Tick readyTime
Tick when ready to issue.
Counter order
Order number assigned to disambiguate writes and misses.
A high-level queue interface, to be used by both the MSHR queue and the write buffer.
void deallocate()
Mark this entry as free.
uint64_t Tick
Tick count type.
Target * getTarget() override
Returns a reference to the first target.
Defines global host-dependent types: Counter, Tick, and (indirectly) {int,uint}{8,16,32,64}_t.
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...
Abstract base class for objects which support being printed to a stream for debugging.
std::list< WriteQueueEntry * > List
A list of write queue entriess.
A queue entry is holding packets that will be serviced as soon as resources are available.
A queue entry base class, to be used by both the MSHRs and write-queue entries.
bool hasTargets() const
Returns true if there are targets left.
Declaration of the Packet class.
Iterator readyIter
Pointer to this entry on the ready list.
int getNumTargets() const
Returns the current number of allocated targets.
bool matchBlockAddr(const Addr addr, const bool is_secure) const override
Check if entry corresponds to the one being looked for.
void popTarget()
Pop first target.
Iterator allocIter
Pointer to this entry on the allocated list.
bool trySatisfyFunctional(PacketPtr pkt)
bool conflictAddr(const QueueEntry *entry) const override
Check if given entry's packets conflict with this' entries packets.
bool sendPacket(BaseCache &cache) override
Send this queue entry as a downstream packet, with the exact behaviour depending on the specific entr...
void allocate(Addr blk_addr, unsigned blk_size, PacketPtr pkt, Tick when_ready, Counter _order)
Allocate a miss to this entry.
void add(PacketPtr pkt, Tick readyTime, Counter order)