summaryrefslogtreecommitdiff
path: root/src/mem/cache/prefetch/associative_set.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/mem/cache/prefetch/associative_set.hh')
-rw-r--r--src/mem/cache/prefetch/associative_set.hh23
1 files changed, 11 insertions, 12 deletions
diff --git a/src/mem/cache/prefetch/associative_set.hh b/src/mem/cache/prefetch/associative_set.hh
index e4e1b0428..6228fe4da 100644
--- a/src/mem/cache/prefetch/associative_set.hh
+++ b/src/mem/cache/prefetch/associative_set.hh
@@ -66,10 +66,10 @@ class TaggedEntry : public ReplaceableEntry {
valid = true;
}
- /**
- * Sets the entry to invalid
- */
- void setInvalid() {
+ /** Invalidates the entry. */
+ virtual void
+ invalidate()
+ {
valid = false;
}
@@ -108,14 +108,6 @@ class TaggedEntry : public ReplaceableEntry {
{
secure = s;
}
-
- /**
- * Resets the entry, this is called when an entry is evicted to allocate
- * a new one. Types inheriting this class should provide its own
- * implementation
- */
- virtual void reset () {
- }
};
/**
@@ -196,6 +188,13 @@ class AssociativeSet {
*/
void insertEntry(Addr addr, bool is_secure, Entry* entry);
+ /**
+ * Invalidate an entry and its respective replacement data.
+ *
+ * @param entry Entry to be invalidated.
+ */
+ void invalidate(Entry* entry);
+
/** Iterator types */
using const_iterator = typename std::vector<Entry>::const_iterator;
using iterator = typename std::vector<Entry>::iterator;