Go to the documentation of this file.
39 #ifndef __MEM_CACHE_PREFETCH_INDIRECT_MEMORY_HH__
40 #define __MEM_CACHE_PREFETCH_INDIRECT_MEMORY_HH__
48 struct IndirectMemoryPrefetcherParams;
141 unsigned int num_shifts)
205 #endif//__MEM_CACHE_PREFETCH_INDIRECT_MEMORY_HH__
AssociativeSet< IndirectPatternDetectorEntry > ipd
Indirect Pattern Detector (IPD) table.
void reset()
Reset the counter to its initial value.
const int streamCounterThreshold
streamCounter value to trigger the streaming prefetcher
void invalidate() override
Invalidates the entry.
bool secondIndexSet
Valid bit for the second index.
Copyright (c) 2018 Metempsy Technology Consulting All rights reserved.
void trackMissIndex2(Addr miss_addr)
Update an IPD entry with a detected miss address, when the second index is being tracked.
AssociativeSet< PrefetchTableEntry > prefetchTable
Prefetch table.
Associative container based on the previosuly defined Entry type Each element is indexed by a key of ...
int numMisses
Number of misses currently recorded.
int64_t idx2
Second index.
Addr address
Accessed address.
Indirect Pattern Detector entrt.
void calculatePrefetch(const PrefetchInfo &pfi, std::vector< AddrPriority > &addresses) override
int64_t index
Current index value.
void trackMissIndex1(Addr miss_addr)
Update an IPD entry with a detected miss address, when the first index is being tracked.
const ByteOrder byteOrder
Byte order used to access the cache.
bool secure
Whether this address is in the secure region.
void invalidate() override
Invalidates the entry.
~IndirectMemory()=default
PrefetchTableEntry(unsigned indirect_counter_bits)
void allocateOrUpdateIPDEntry(const PrefetchTableEntry *pt_entry, int64_t index)
Allocate or update an entry in the IPD.
Copyright (c) 2018 Metempsy Technology Consulting All rights reserved.
IndirectPatternDetectorEntry(unsigned int num_addresses, unsigned int num_shifts)
IndirectMemory(const IndirectMemoryPrefetcherParams *p)
unsigned int streamCounter
Confidence counter of the stream.
bool increasedIndirectCounter
This variable is set to indicate that there has been at least one match with the current index value.
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
Addr baseAddr
BaseAddr detected.
IndirectPatternDetectorEntry * ipdEntryTrackingMisses
Entry currently tracking misses.
Implements an n bit saturating counter and provides methods to increment, decrement,...
const int streamingDistance
Number of prefetches generated when using the streaming prefetcher.
const unsigned int prefetchThreshold
Counter threshold to start prefetching.
virtual void invalidate()
Invalidates the entry.
Overload hash function for BasicBlockRange type.
void checkAccessMatchOnActiveEntries(Addr addr)
Checks if an access to the cache matches any active PT entry, if so, the indirect confidence counter ...
Class containing the information needed by the prefetch to train and generate new prefetch requests.
bool enabled
Enable bit of the indirect fields.
std::vector< std::vector< Addr > > baseAddr
Potential BaseAddr candidates for each recorded miss.
SatCounter indirectCounter
Confidence counter of the indirect fields.
const unsigned int maxPrefetchDistance
Maximum number of prefetches generated per event.
const std::vector< int > shiftValues
Shift values considered.
Generated on Wed Sep 30 2020 14:02:12 for gem5 by doxygen 1.8.17