summaryrefslogtreecommitdiff
path: root/src/mem/cache/cache.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/mem/cache/cache.hh')
-rw-r--r--src/mem/cache/cache.hh3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mem/cache/cache.hh b/src/mem/cache/cache.hh
index faa317917..729e1f32c 100644
--- a/src/mem/cache/cache.hh
+++ b/src/mem/cache/cache.hh
@@ -411,6 +411,9 @@ class Cache : public BaseCache
/** Instantiates a basic cache object. */
Cache(const Params *p);
+ /** Non-default destructor is needed to deallocate memory. */
+ virtual ~Cache();
+
void regStats();
/** serialize the state of the caches