38#ifndef __MEM_CACHE_PREFETCH_IRREGULAR_STREAM_BUFFER_HH__
39#define __MEM_CACHE_PREFETCH_IRREGULAR_STREAM_BUFFER_HH__
50struct IrregularStreamBufferPrefetcherParams;
110 entry.counter.reset();
132 Addr physical_address);
A tagged entry is an entry containing a tag.
void registerTagExtractor(TagExtractor ext)
virtual void invalidate()
Invalidate the block.
std::function< Addr(Addr)> TagExtractor
Class containing the information needed by the prefetch to train and generate new prefetch requests.
const unsigned prefetchCandidatesPerEntry
Number of prefetch candidates per Physical-to-Structural entry.
AssociativeCache< TrainingUnitEntry > trainingUnit
Map of PCs to Training unit entries.
const size_t chunkSize
Size in bytes of a temporal stream.
AssociativeCache< AddressMappingEntry > psAddressMappingCache
Physical-to-Structured mappings table.
uint64_t structuralAddressCounter
Counter of allocated structural addresses, increased by "chunkSize", each time a new structured addre...
AddressMapping & getPSMapping(Addr paddr, bool is_secure)
Obtain the Physical-to-Structured mapping entry of the given physical address.
void calculatePrefetch(const PrefetchInfo &pfi, std::vector< AddrPriority > &addresses, const CacheAccessor &cache) override
AssociativeCache< AddressMappingEntry > spAddressMappingCache
Structured-to-Physical mappings table.
~IrregularStreamBuffer()=default
void addStructuralToPhysicalEntry(Addr structuralAddress, bool is_secure, Addr physical_address)
Add a mapping to the Structured-to-Physica mapping table.
const unsigned degree
Number of maximum prefetches requests created when predicting.
constexpr T bits(T val, unsigned first, unsigned last)
Extract the bitfield from position 'first' to 'last' (inclusive) from 'val' and right justify it.
Copyright (c) 2024 Arm Limited All rights reserved.
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
Provides generic cache lookup functions.
Maps a set of contiguous addresses to another set of (not necessarily contiguos) addresses,...
AddressMappingEntry(size_t num_mappings, unsigned counter_bits, TagExtractor ext)
void invalidate() override
Invalidate the block.
std::vector< AddressMapping > mappings
Address Mapping entry, holds an address and a confidence counter.
AddressMapping(unsigned bits)
Training Unit Entry datatype, it holds the last accessed address and its secure flag.
TrainingUnitEntry(TagExtractor ext)