39 #ifndef __MEM_CACHE_PREFETCH_PIF_HH__ 40 #define __MEM_CACHE_PREFETCH_PIF_HH__ 48 struct PIFPrefetcherParams;
120 unsigned int log_blk_size)
const;
164 const std::string &
name)
191 #endif // __MEM_CACHE_PREFETCH_PIF_HH__
PIFPrefetcher(const PIFPrefetcherParams *p)
Copyright (c) 2019 Metempsy Technology Consulting All rights reserved.
void addEventProbeRetiredInsts(SimObject *obj, const char *name)
Add a SimObject and a probe name to monitor the retired instructions.
bool inSameSpatialRegion(Addr addr, unsigned int log_blk_size, bool update)
Checks if a given address is in the same defined spatial region as the compactor entry.
std::deque< CompactorEntry > temporalCompactor
Probe Listener to handle probe events from the CPU.
PrefetchListenerPC(PIFPrefetcher &_parent, ProbeManager *pm, const std::string &name)
const unsigned int maxStreamAddressBufferEntries
Max number of entries to be used in the Stream Address Buffer.
Addr distanceFromTrigger(Addr addr, unsigned int log_blk_size) const
Computes the distance, in cache blocks, from an address to the trigger of the entry.
ProbeManager is a conduit class that lives on each SimObject, and is used to match up probe listeners...
const unsigned int maxCompactorEntries
Number of entries used for the temporal compactor.
std::deque< CompactorEntry * > streamAddressBuffer
A Stream Address Buffer (SAB) tracks a window of consecutive spatial regions.
unsigned int historyIndex
std::vector< PrefetchListenerPC * > listenersPC
Array of probe listeners.
Class containing the information needed by the prefetch to train and generate new prefetch requests...
ProbeListenerArgBase is used to define the base interface to a ProbeListenerArg (i.e the notify method on specific type).
const unsigned int succSize
void notifyRetiredInst(const Addr pc)
Updates the prefetcher structures upon an instruction retired.
The compactor tracks retired instructions addresses, leveraging the spatial and temporal locality amo...
unsigned int historyBufferTail
std::vector< CompactorEntry > historyBuffer
History buffer is a circular buffer that stores the sequence of retired instructions in FIFO order...
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
void notify(const PacketPtr &pkt, const PrefetchInfo &pfi) override
Notify prefetcher of cache access (may be any access or just misses, depending on cache parameters...
virtual const std::string name() const
Associative container based on the previosuly defined Entry type Each element is indexed by a key of ...
CompactorEntry spatialCompactor
void calculatePrefetch(const PrefetchInfo &pfi, std::vector< AddrPriority > &addresses)
const unsigned int precSize
Number of preceding and subsequent spatial addresses to compact.
Copyright (c) 2018 Metempsy Technology Consulting All rights reserved.
AssociativeSet< IndexEntry > index
The index table is a small cache-like structure that facilitates fast search of the history buffer...
bool hasAddress(Addr target, unsigned int log_blk_size) const
Checks if the provided address is contained in this spatial region and if its corresponding bit vecto...
void update() const
Align cycle and tick to the next clock edge if not already done.
Abstract superclass for simulation objects.
void getPredictedAddresses(unsigned int log_blk_size, std::vector< AddrPriority > &addresses) const
Fills the provided vector with the predicted addresses using the recorded bit vectors of the entry...