summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mem/cache/replacement_policies/replaceable_entry.hh15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/mem/cache/replacement_policies/replaceable_entry.hh b/src/mem/cache/replacement_policies/replaceable_entry.hh
index dffa4cf10..c558beea1 100644
--- a/src/mem/cache/replacement_policies/replaceable_entry.hh
+++ b/src/mem/cache/replacement_policies/replaceable_entry.hh
@@ -63,12 +63,15 @@ class ReplaceableEntry
*/
uint32_t _way;
- public:
- /**
- * Replacement data associated to this entry.
- * It must be instantiated by the replacement policy before being used.
- */
- std::shared_ptr<ReplacementData> replacementData;
+ public:
+ ReplaceableEntry() = default;
+ virtual ~ReplaceableEntry() = default;
+
+ /**
+ * Replacement data associated to this entry.
+ * It must be instantiated by the replacement policy before being used.
+ */
+ std::shared_ptr<ReplacementData> replacementData;
/**
* Set both the set and way. Should be called only once.