summaryrefslogtreecommitdiff
path: root/src/mem/cache/prefetch/access_map_pattern_matching.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/mem/cache/prefetch/access_map_pattern_matching.hh')
-rw-r--r--src/mem/cache/prefetch/access_map_pattern_matching.hh11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/mem/cache/prefetch/access_map_pattern_matching.hh b/src/mem/cache/prefetch/access_map_pattern_matching.hh
index 397bc788a..6e2e194c7 100644
--- a/src/mem/cache/prefetch/access_map_pattern_matching.hh
+++ b/src/mem/cache/prefetch/access_map_pattern_matching.hh
@@ -89,12 +89,15 @@ class AccessMapPatternMatching : public ClockedObject
/** vector containing the state of the cachelines in this zone */
std::vector<AccessMapState> states;
- AccessMapEntry(size_t num_entries) : states(num_entries, AM_INIT)
- {}
+ AccessMapEntry(size_t num_entries)
+ : TaggedEntry(), states(num_entries, AM_INIT)
+ {
+ }
- /** Reset the entries to their initial values */
- void reset() override
+ void
+ invalidate() override
{
+ TaggedEntry::invalidate();
for (auto &entry : states) {
entry = AM_INIT;
}