From: Xiaoyu Ma Date: Wed, 17 Jan 2018 23:08:06 +0000 (-0800) Subject: mem-cache: Allow prefetchers to override setCache. X-Git-Tag: v19.0.0.0~2254 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f80e7c072fcac179b98dbbac8cc90dba68af9cf4;p=gem5.git 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 --- 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