summaryrefslogtreecommitdiff
path: root/src/mem/cache/blk.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/mem/cache/blk.hh')
-rw-r--r--src/mem/cache/blk.hh3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mem/cache/blk.hh b/src/mem/cache/blk.hh
index 66f05c884..7dd0a92ae 100644
--- a/src/mem/cache/blk.hh
+++ b/src/mem/cache/blk.hh
@@ -170,6 +170,7 @@ class CacheBlk
CacheBlk(const CacheBlk&) = delete;
CacheBlk& operator=(const CacheBlk&) = delete;
+ virtual ~CacheBlk() {};
/**
* Checks the write permissions of this block.
@@ -205,7 +206,7 @@ class CacheBlk
/**
* Invalidate the block and clear all state.
*/
- void invalidate()
+ virtual void invalidate()
{
tag = MaxAddr;
task_id = ContextSwitchTaskId::Unknown;