46#ifndef __MEM_CACHE_WRITE_QUEUE_ENTRY_HH__
47#define __MEM_CACHE_WRITE_QUEUE_ENTRY_HH__
73 template<
typename Entry>
86 void print(std::ostream &
os,
int verbosity,
87 const std::string &prefix)
const;
176 const std::string &prefix =
"")
const override;
183 std::string
print()
const;
Defines global host-dependent types: Counter, Tick, and (indirectly) {int,uint}{8,...
virtual std::string name() const
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.
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.
Counter order
Order number assigned to disambiguate writes and misses.
Tick readyTime
Tick when ready to issue.
A high-level queue interface, to be used by both the MSHR queue and the write buffer.
void add(PacketPtr pkt, Tick readyTime, Counter order)
bool trySatisfyFunctional(PacketPtr pkt)
int getNumTargets() const
Returns the current number of allocated targets.
Target * getTarget() override
Returns a reference to the first target.
void popTarget()
Pop first target.
Iterator allocIter
Pointer to this entry on the allocated list.
bool matchBlockAddr(const Addr addr, const bool is_secure) const override
Check if entry corresponds to the one being looked for.
bool trySatisfyFunctional(PacketPtr pkt)
std::string print() const
A no-args wrapper of print(std::ostream...) meant to be invoked from DPRINTFs avoiding string overhea...
bool sendPacket(BaseCache &cache) override
Send this queue entry as a downstream packet, with the exact behaviour depending on the specific entr...
bool hasTargets() const
Returns true if there are targets left.
void allocate(Addr blk_addr, unsigned blk_size, PacketPtr pkt, Tick when_ready, Counter _order)
Allocate a miss to this entry.
TargetList targets
List of all requests that match the address.
void deallocate()
Mark this entry as free.
Iterator readyIter
Pointer to this entry on the ready list.
std::list< WriteQueueEntry * > List
A list of write queue entriess.
WriteQueueEntry(const std::string &name)
A simple constructor.
bool conflictAddr(const QueueEntry *entry) const override
Check if given entry's packets conflict with this' entries packets.
List::iterator Iterator
WriteQueueEntry list iterator.
A write queue for all eviction packets, i.e.
double Counter
All counters are of 64-bit values.
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
uint64_t Tick
Tick count type.
Declaration of the Packet class.