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"
67 struct StridePrefetcherParams;
83 const StridePrefetcherHashedSetAssociativeParams &
p)
156 Stride(
const StridePrefetcherParams &
p);
164 #endif // __MEM_CACHE_PREFETCH_STRIDE_HH__
StrideEntry(const SatCounter8 &init_confidence)
const bool useRequestorId
Copyright (c) 2020 Inria All rights reserved.
Copyright (c) 2018 Metempsy Technology Consulting All rights reserved.
PCTable * allocateNewContext(int context)
Create a PC table for the given context.
AssociativeSet< StrideEntry > PCTable
std::unordered_map< int, PCTable > pcTables
const double threshConf
Confidence threshold for prefetch generation.
void calculatePrefetch(const PrefetchInfo &pfi, std::vector< AddrPriority > &addresses) override
StridePrefetcherHashedSetAssociative(const StridePrefetcherHashedSetAssociativeParams &p)
Copyright (c) 2018-2020 Inria All rights reserved.
uint32_t extractSet(const Addr addr) const override
Apply a hash function to calculate address set.
A set associative indexing policy.
PCTableInfo(int assoc, int num_entries, BaseIndexingPolicy *indexing_policy, ReplacementPolicy::Base *replacement_policy)
Copyright (c) 2018 Metempsy Technology Consulting All rights reserved.
~StridePrefetcherHashedSetAssociative()=default
A common base class of cache replacement policy objects.
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.
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.
const SatCounter8 initConfidence
Initial confidence counter value for the pc tables.
ReplacementPolicy::Base *const replacementPolicy
void invalidate() override
Invalidate the block.
Stride(const StridePrefetcherParams &p)
BaseIndexingPolicy *const indexingPolicy
Generated on Tue Mar 23 2021 19:41:27 for gem5 by doxygen 1.8.17