Go to the documentation of this file.
29 #ifndef __CACHE_PREFETCH_ASSOCIATIVE_SET_HH__
30 #define __CACHE_PREFETCH_ASSOCIATIVE_SET_HH__
47 static_assert(std::is_base_of_v<TaggedEntry, Entry>,
48 "Entry must derive from TaggedEntry");
169 #endif//__CACHE_PREFETCH_ASSOCIATIVE_SET_HH__
void invalidate(Entry *entry)
Invalidate an entry and its respective replacement data.
const int associativity
Associativity of the container.
void insertEntry(Addr addr, bool is_secure, Entry *entry)
Indicate that an entry has just been inserted.
std::vector< Entry > entries
Vector containing the entries of the container.
A common base class for indexing table locations.
const_iterator end() const
Returns an iterator pointing to the end of the the dictionary (placeholder element,...
typename std::vector< gem5::prefetch::SignaturePath::PatternEntry >::const_iterator const_iterator
Iterator types.
iterator begin()
Returns an iterator to the first entry of the dictionary.
const_iterator begin() const
Returns an iterator to the first entry of the dictionary.
typename std::vector< gem5::prefetch::SignaturePath::PatternEntry >::iterator iterator
BaseIndexingPolicy *const indexingPolicy
Pointer to the indexing policy.
AssociativeSet(int assoc, int num_entries, BaseIndexingPolicy *idx_policy, replacement_policy::Base *rpl_policy, Entry const &init_val=Entry())
Public constructor.
Associative container based on the previosuly defined Entry type Each element is indexed by a key of ...
iterator end()
Returns an iterator pointing to the end of the the dictionary (placeholder element,...
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.
Entry * findVictim(Addr addr)
Find a victim to be replaced.
std::vector< Entry * > getPossibleEntries(const Addr addr) const
Find the set of entries that could be replaced given that we want to add a new entry with the provide...
void accessEntry(Entry *entry)
Do an access to the entry, this is required to update the replacement information data.
replacement_policy::Base *const replacementPolicy
Pointer to the replacement policy.
Entry * findEntry(Addr addr, bool is_secure) const
Find an entry within the set.
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
const int numEntries
Total number of entries, entries are organized in sets of the provided associativity.
Generated on Sun Jul 30 2023 01:56:57 for gem5 by doxygen 1.8.17