Go to the documentation of this file.
47 #ifndef __MEM_CACHE_PREFETCH_STRIDE_HH__
48 #define __MEM_CACHE_PREFETCH_STRIDE_HH__
51 #include <unordered_map>
61 #include "params/StridePrefetcherHashedSetAssociative.hh"
65 struct StridePrefetcherParams;
81 const StridePrefetcherHashedSetAssociativeParams *
p)
154 Stride(
const StridePrefetcherParams *
p);
162 #endif // __MEM_CACHE_PREFETCH_STRIDE_HH__
const bool useRequestorId
BaseReplacementPolicy *const replacementPolicy
Copyright (c) 2018 Metempsy Technology Consulting All rights reserved.
Associative container based on the previosuly defined Entry type Each element is indexed by a key of ...
PCTableInfo(int assoc, int num_entries, BaseIndexingPolicy *indexing_policy, BaseReplacementPolicy *replacement_policy)
PCTable * allocateNewContext(int context)
Create a PC table for the given context.
AssociativeSet< StrideEntry > PCTable
std::unordered_map< int, PCTable > pcTables
StridePrefetcherHashedSetAssociative(const StridePrefetcherHashedSetAssociativeParams *p)
const double threshConf
Confidence threshold for prefetch generation.
void calculatePrefetch(const PrefetchInfo &pfi, std::vector< AddrPriority > &addresses) override
Stride(const StridePrefetcherParams *p)
uint32_t extractSet(const Addr addr) const override
Apply a hash function to calculate address set.
StrideEntry(const SatCounter &init_confidence)
A common base class of cache replacement policy objects.
A set associative indexing policy.
Copyright (c) 2018 Metempsy Technology Consulting All rights reserved.
~StridePrefetcherHashedSetAssociative()=default
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
Information used to create a new PC table.
PCTable * findTable(int context)
Try to find a table of entries for the given context.
const SatCounter initConfidence
Initial confidence counter value for the pc tables.
Implements an n bit saturating counter and provides methods to increment, decrement,...
Override the default set associative to apply a specific hash function when extracting a set.
Addr extractTag(const Addr addr) const override
Generate the tag from the given address.
const struct Prefetcher::Stride::PCTableInfo pcTableInfo
Class containing the information needed by the prefetch to train and generate new prefetch requests.
A common base class for indexing table locations.
void invalidate() override
Invalidates the entry.
BaseIndexingPolicy *const indexingPolicy
Generated on Wed Sep 30 2020 14:02:12 for gem5 by doxygen 1.8.17