41 #ifndef __MEM_RUBY_STRUCTURES_PREFETCHER_HH__ 42 #define __MEM_RUBY_STRUCTURES_PREFETCHER_HH__ 54 #include "params/RubyPrefetcher.hh" 58 #define MAX_PF_INFLIGHT 8 107 void observePfHit(
Addr address);
108 void observePfMiss(
Addr address);
115 void observeMiss(
Addr address,
const RubyRequestType&
type);
120 void print(std::ostream& out)
const;
122 { m_controller = _ctrl; }
132 uint32_t getLRUindex(
void);
135 void clearNonunitEntry(uint32_t
index);
138 void initializeStream(
Addr address,
int stride,
139 uint32_t index,
const RubyRequestType&
type);
148 uint32_t *hit_table, uint32_t &index,
Addr address,
149 int stride,
bool &alloc);
152 bool accessNonunitFilter(
Addr address,
int *stride,
224 #endif // __MEM_RUBY_STRUCTURES_PREFETCHER_HH__ uint32_t m_num_startup_pfs
number of initial prefetches to startup a stream
uint32_t m_num_unit_filters
number of stride filters
Cycles is a wrapper class for representing cycle counts, i.e.
std::bitset< MAX_PF_INFLIGHT > requestIssued
Bitset for tracking prefetches for which addresses have been issued, which ones have completed...
bool m_prefetch_cross_pages
Used for allowing prefetches across pages.
uint32_t * m_negative_filter_hit
An array used to count the of times particular filter entries have been hit.
Bitfield< 21, 20 > stride
uint32_t m_num_nonunit_filters
number of non-stride filters
void setController(AbstractController *_ctrl)
RubyRequestType m_type
L1D prefetches loads and stores.
int m_stride
stride distance to get next address from
Declaration of Statistics objects.
This is a simple scalar statistic, like a counter.
int * m_nonunit_stride
An array of strides (in # of cache lines) for the filter entries.
uint32_t m_negative_filter_index
a round robin pointer into the negative filter group
Stats::Scalar numHits
Count of successful prefetches.
bool m_is_valid
valid bit for each stream
Stats::Scalar numPagesCrossed
Count of pages crossed.
Stats::Scalar numAllocatedStreams
Count of prefetch streams allocated.
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
uint32_t * m_nonunit_hit
An array used to count the of times particular filter entries have been hit.
AbstractController * m_controller
Stats::Scalar numPrefetchRequested
Count of prefetch requests made.
Addr m_address
The base address for the stream prefetch.
uint32_t m_train_misses
number of misses I must see before allocating a stream
std::vector< Addr > m_negative_filter
a negative unit stride filter array: helps reduce BW requirement of prefetching
PrefetchEntry()
constructor
std::bitset< MAX_PF_INFLIGHT > requestCompleted
RubyPrefetcherParams Params
std::vector< PrefetchEntry > m_array
an array of the active prefetch streams
std::vector< Addr > m_unit_filter
a unit stride filter array: helps reduce BW requirement of prefetching
uint32_t m_nonunit_index
a round robin pointer into the unit filter group
std::vector< Addr > m_nonunit_filter
a non-unit stride filter array: helps reduce BW requirement of prefetching
Stats::Scalar numMissedPrefetchedBlocks
Count of misses incurred for blocks that were prefetched.
Stats::Scalar numMissObserved
Count of accesses to the prefetcher.
uint32_t * m_unit_filter_hit
An array used to count the of times particular filter entries have been hit.
uint32_t m_unit_filter_index
a round robin pointer into the unit filter group
static uint32_t getBlockSizeBits()
Abstract superclass for simulation objects.
Stats::Scalar numPartialHits
Count of partial successful prefetches.
uint32_t m_num_streams
number of prefetch streams available
Cycles m_use_time
the last time that any prefetched request was used