47#ifndef __MEM_CACHE_PREFETCH_STRIDE_HH__
48#define __MEM_CACHE_PREFETCH_STRIDE_HH__
51#include <unordered_map>
62#include "params/StridePrefetcherHashedSetAssociative.hh"
67namespace replacement_policy
67namespace replacement_policy {
…}
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,...
A common base class for indexing table locations.
typename Types::KeyType KeyType
A tagged entry is an entry containing a tag.
std::function< Addr(Addr)> TagExtractor
This version of set associative indexing deals with a Lookup structure made of address and secure bit...
Class containing the information needed by the prefetch to train and generate new prefetch requests.
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.
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
const int distance
How far ahead of the demand stream to start prefetching.
const bool useRequestorId
const struct gem5::prefetch::Stride::PCTableInfo pcTableInfo
A common base class of cache replacement policy objects.
Copyright (c) 2024 Arm Limited All rights reserved.
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
Declaration of the Packet class.
Declaration of a set associative indexing policy.
Provides generic cache lookup functions.
Information used to create a new PC table.
TaggedIndexingPolicy *const indexingPolicy
replacement_policy::Base *const replacementPolicy
PCTableInfo(int assoc, int num_entries, TaggedIndexingPolicy *indexing_policy, replacement_policy::Base *repl_policy)
void invalidate() override
Invalidate the block.