summaryrefslogtreecommitdiff
path: root/src/mem/cache/prefetch
diff options
context:
space:
mode:
authorXiaoyu Ma <xiaoyuma@google.com>2018-01-17 15:08:06 -0800
committerGabe Black <gabeblack@google.com>2018-03-07 00:13:39 +0000
commitf80e7c072fcac179b98dbbac8cc90dba68af9cf4 (patch)
tree81d5e5bcc95bf8911aefdcd5a3c708fdf953a185 /src/mem/cache/prefetch
parent659900aedd1b4fc69b61b5dbaee39dba26848637 (diff)
downloadgem5-f80e7c072fcac179b98dbbac8cc90dba68af9cf4.tar.xz
mem-cache: Allow prefetchers to override setCache.
This lets them hook setCache, perhaps to set up additional state based on the set cache. Change-Id: Ic3b34fa43d052c71e8ef733a57fe47c70899cd27 Reviewed-on: https://gem5-review.googlesource.com/8701 Reviewed-by: Jason Lowe-Power <jason@lowepower.com> Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/mem/cache/prefetch')
-rw-r--r--src/mem/cache/prefetch/base.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mem/cache/prefetch/base.hh b/src/mem/cache/prefetch/base.hh
index 683c59f1f..3b2310621 100644
--- a/src/mem/cache/prefetch/base.hh
+++ b/src/mem/cache/prefetch/base.hh
@@ -125,7 +125,7 @@ class BasePrefetcher : public ClockedObject
virtual ~BasePrefetcher() {}
- void setCache(BaseCache *_cache);
+ virtual void setCache(BaseCache *_cache);
/**
* Notify prefetcher of cache access (may be any access or just