From f80e7c072fcac179b98dbbac8cc90dba68af9cf4 Mon Sep 17 00:00:00 2001 From: Xiaoyu Ma Date: Wed, 17 Jan 2018 15:08:06 -0800 Subject: 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 Maintainer: Gabe Black --- src/mem/cache/prefetch/base.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mem/cache/prefetch') 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 -- cgit v1.2.3