diff options
author | Mrinmoy Ghosh <mrinmoy.ghosh@arm.com> | 2012-02-12 16:07:38 -0600 |
---|---|---|
committer | Mrinmoy Ghosh <mrinmoy.ghosh@arm.com> | 2012-02-12 16:07:38 -0600 |
commit | 7e104a1af235823e3d641a972ea920937f7ec67d (patch) | |
tree | d109d98f09652ed11b08dfe0d93a531b28d14df7 /src/mem/cache/cache_impl.hh | |
parent | b7cf64398f16e93f118060bd49313f1d37f0e324 (diff) | |
download | gem5-7e104a1af235823e3d641a972ea920937f7ec67d.tar.xz |
prefetcher: Make prefetcher a sim object instead of it being a parameter on cache
Diffstat (limited to 'src/mem/cache/cache_impl.hh')
-rw-r--r-- | src/mem/cache/cache_impl.hh | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mem/cache/cache_impl.hh b/src/mem/cache/cache_impl.hh index 2ef53e040..16b5148dc 100644 --- a/src/mem/cache/cache_impl.hh +++ b/src/mem/cache/cache_impl.hh @@ -63,10 +63,10 @@ #include "sim/sim_exit.hh" template<class TagStore> -Cache<TagStore>::Cache(const Params *p, TagStore *tags, BasePrefetcher *pf) +Cache<TagStore>::Cache(const Params *p, TagStore *tags) : BaseCache(p), tags(tags), - prefetcher(pf), + prefetcher(p->prefetcher), doFastWrites(true), prefetchOnAccess(p->prefetch_on_access) { @@ -89,8 +89,6 @@ Cache<TagStore>::regStats() { BaseCache::regStats(); tags->regStats(name()); - if (prefetcher) - prefetcher->regStats(name()); } template<class TagStore> |