Go to the documentation of this file.
42 #ifndef __MEM_RUBY_STRUCTURES_PREFETCHER_HH__
43 #define __MEM_RUBY_STRUCTURES_PREFETCHER_HH__
56 #include "params/RubyPrefetcher.hh"
60 #define MAX_PF_INFLIGHT 8
122 void print(std::ostream& out)
const;
168 uint32_t
index,
const RubyRequestType&
type);
258 #endif // __MEM_RUBY_STRUCTURES_PREFETCHER_HH__
RubyRequestType m_type
L1D prefetches loads and stores.
Addr pageAddress(Addr addr) const
determine the page aligned address
int stride
Stride (in # of cache lines).
void print(std::ostream &out) const
Print out some statistics.
uint32_t m_num_startup_pfs
number of initial prefetches to startup a stream
void setController(AbstractController *_ctrl)
CircularQueue< UnitFilterEntry > unitFilter
A unit stride filter array: helps reduce BW requirement of prefetching.
Cycles m_use_time
the last time that any prefetched request was used
void issueNextPrefetch(Addr address, PrefetchEntry *stream)
int m_stride
stride distance to get next address from
Stats::Scalar numPartialHits
Count of partial successful prefetches.
uint32_t m_num_streams
number of prefetch streams available
std::bitset< MAX_PF_INFLIGHT > requestCompleted
void observeMiss(Addr address, const RubyRequestType &type)
Observe a memory miss from the cache.
Stats::Scalar numPrefetchRequested
Count of prefetch requests made.
~RubyPrefetcher()=default
Addr addr
Address to which this filter entry refers.
PrefetchEntry()
constructor
UnitFilterEntry(Addr _addr=0)
bool m_is_valid
valid bit for each stream
std::bitset< MAX_PF_INFLIGHT > requestIssued
Bitset for tracking prefetches for which addresses have been issued, which ones have completed.
RubyPrefetcherStats(Stats::Group *parent)
void observePfHit(Addr address)
Implement the prefetch hit(miss) callback interface.
This is a simple scalar statistic, like a counter.
Stats::Scalar numPagesCrossed
Count of pages crossed.
AbstractController * m_controller
Stats::Scalar numHits
Count of successful prefetches.
uint32_t getLRUindex(void)
Returns an unused stream buffer (or if all are used, returns the least recently used (accessed) strea...
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
Stats::Scalar numAllocatedStreams
Count of prefetch streams allocated.
Stats::Scalar numMissedPrefetchedBlocks
Count of misses incurred for blocks that were prefetched.
CircularQueue< UnitFilterEntry > negativeFilter
A negative unit stride filter array: helps reduce BW requirement of prefetching.
NonUnitFilterEntry(Addr _addr=0)
void observePfMiss(Addr address)
void initializeStream(Addr address, int stride, uint32_t index, const RubyRequestType &type)
allocate a new stream buffer at a specific index
std::vector< PrefetchEntry > m_array
an array of the active prefetch streams
RubyPrefetcher::RubyPrefetcherStats rubyPrefetcherStats
bool accessNonunitFilter(Addr line_addr, const RubyRequestType &type)
Access a non-unit stride filter to determine if there is a hit, and update it otherwise.
Addr m_address
The base address for the stream prefetch.
Bitfield< 21, 20 > stride
RubyPrefetcherParams Params
Cycles is a wrapper class for representing cycle counts, i.e.
PrefetchEntry * getPrefetchEntry(Addr address, uint32_t &index)
get pointer to the matching stream entry, returns NULL if not found index holds the multiple of the s...
uint32_t m_train_misses
number of misses I must see before allocating a stream
Stats::Scalar numMissObserved
Count of accesses to the prefetcher.
bool accessUnitFilter(CircularQueue< UnitFilterEntry > *const filter, Addr line_addr, int stride, const RubyRequestType &type)
Access a unit stride filter to determine if there is a hit, and update it otherwise.
bool m_prefetch_cross_pages
Used for allowing prefetches across pages.
uint32_t hits
Counter of the number of times this entry has been hit.
RubyPrefetcher(const Params &p)
static uint32_t getBlockSizeBits()
CircularQueue< NonUnitFilterEntry > nonUnitFilter
A non-unit stride filter array: helps reduce BW requirement of prefetching.
Abstract superclass for simulation objects.
Generated on Tue Jun 22 2021 15:28:30 for gem5 by doxygen 1.8.17