47#ifndef __MEM_CACHE_PREFETCH_STRIDE_HH__
48#define __MEM_CACHE_PREFETCH_STRIDE_HH__
51#include <unordered_map>
62#include "params/StridePrefetcherHashedSetAssociative.hh"
71struct StridePrefetcherParams;
88 const StridePrefetcherHashedSetAssociativeParams &
p)
148 std::unordered_map<int, std::unique_ptr<PCTable>>
pcTables;
175 Stride(
const StridePrefetcherParams &
p);
Defines global host-dependent types: Counter, Tick, and (indirectly) {int,uint}{8,...
typename TaggedTypes::KeyType KeyType
std::function< Addr(Addr)> TagExtractor
TaggedSetAssociative(const Params &p)
Class containing the information needed by the prefetch to train and generate new prefetch requests.
Queued(const QueuedPrefetcherParams &p)
Addr extractTag(const Addr addr) const override
Generate the tag from the given address.
uint32_t extractSet(const KeyType &key) const override
StridePrefetcherHashedSetAssociative(const StridePrefetcherHashedSetAssociativeParams &p)
~StridePrefetcherHashedSetAssociative()=default
const SatCounter8 initConfidence
Initial confidence counter value for the pc tables.
const double threshConf
Confidence threshold for prefetch generation.
void calculatePrefetch(const PrefetchInfo &pfi, std::vector< AddrPriority > &addresses, const CacheAccessor &cache) override
const bool useCachelineAddr
If this parameter is set to true, then the prefetcher will operate at the granularity of cache line.
PCTable & allocateNewContext(int context)
Create a PC table for the given context.
PCTable & findTable(int context)
Try to find a table of entries for the given context.
std::unordered_map< int, std::unique_ptr< PCTable > > pcTables
AssociativeCache< StrideEntry > PCTable
const int distance
How far ahead of the demand stream to start prefetching.
Stride(const StridePrefetcherParams &p)
const bool useRequestorId
const struct gem5::prefetch::Stride::PCTableInfo pcTableInfo
A common base class of cache replacement policy objects.
GenericSatCounter< uint8_t > SatCounter8
Copyright (c) 2024 Arm Limited All rights reserved.
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
IndexingPolicyTemplate< TaggedTypes > TaggedIndexingPolicy
Declaration of the Packet class.
Declaration of a set associative indexing policy.
Provides generic cache lookup functions.
TaggedIndexingPolicy *const indexingPolicy
replacement_policy::Base *const replacementPolicy
PCTableInfo(int assoc, int num_entries, TaggedIndexingPolicy *indexing_policy, replacement_policy::Base *repl_policy)
StrideEntry(const SatCounter8 &init_confidence, TagExtractor ext)
void invalidate() override
Invalidate the block.