40 #ifndef __MEM_CACHE_PREFETCH_IRREGULAR_STREAM_BUFFER_HH__ 41 #define __MEM_CACHE_PREFETCH_IRREGULAR_STREAM_BUFFER_HH__ 48 struct IrregularStreamBufferPrefetcherParams;
86 :
TaggedEntry(), mappings(num_mappings, counter_bits)
94 for (
auto &entry : mappings) {
96 entry.counter.reset();
118 Addr physical_address);
131 const IrregularStreamBufferPrefetcherParams *
p);
136 #endif//__MEM_CACHE_PREFETCH_IRREGULAR_STREAM_BUFFER_HH__ const unsigned degree
Number of maximum prefetches requests created when predicting.
std::vector< AddressMapping > mappings
const size_t chunkSize
Size in bytes of a temporal stream.
void invalidate() override
Invalidates the entry.
Training Unit Entry datatype, it holds the last accessed address and its secure flag.
void calculatePrefetch(const PrefetchInfo &pfi, std::vector< AddrPriority > &addresses) override
Address Mapping entry, holds an address and a confidence counter.
AssociativeSet< AddressMappingEntry > spAddressMappingCache
Structured-to-Physical mappings table.
~IrregularStreamBufferPrefetcher()
void addStructuralToPhysicalEntry(Addr structuralAddress, bool is_secure, Addr physical_address)
Add a mapping to the Structured-to-Physica mapping table.
AddressMapping(unsigned bits)
Class containing the information needed by the prefetch to train and generate new prefetch requests...
AssociativeSet< AddressMappingEntry > psAddressMappingCache
Physical-to-Structured mappings table.
Implements an n bit saturating counter and provides methods to increment, decrement, and read it.
AssociativeSet< TrainingUnitEntry > trainingUnit
Map of PCs to Training unit entries.
IrregularStreamBufferPrefetcher(const IrregularStreamBufferPrefetcherParams *p)
Copyright (c) 2018 Metempsy Technology Consulting All rights reserved.
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
Associative container based on the previosuly defined Entry type Each element is indexed by a key of ...
AddressMapping & getPSMapping(Addr paddr, bool is_secure)
Obtain the Physical-to-Structured mapping entry of the given physical address.
const unsigned prefetchCandidatesPerEntry
Number of prefetch candidates per Physical-to-Structural entry.
Maps a set of contiguous addresses to another set of (not necessarily contiguos) addresses, with their corresponding confidence counters.
AddressMappingEntry(size_t num_mappings, unsigned counter_bits)
Copyright (c) 2018 Metempsy Technology Consulting All rights reserved.
uint64_t structuralAddressCounter
Counter of allocated structural addresses, increased by "chunkSize", each time a new structured addre...
T bits(T val, int first, int last)
Extract the bitfield from position 'first' to 'last' (inclusive) from 'val' and right justify it...
virtual void invalidate()
Invalidates the entry.