diff options
author | Rekai Gonzalez Alberquilla <Rekai.GonzalezAlberquilla@arm.com> | 2015-05-27 13:50:01 +0100 |
---|---|---|
committer | Rekai Gonzalez Alberquilla <Rekai.GonzalezAlberquilla@arm.com> | 2015-05-27 13:50:01 +0100 |
commit | a3bf4aa6ec9caa68a558f7347d55991f7a254fa5 (patch) | |
tree | 119e12016b32ddc297e52524ae5ad9c7ab9a83b8 /src/mem/cache/base.hh | |
parent | c75ff71139d6358678835cca63e35d1135eaf466 (diff) | |
download | gem5-a3bf4aa6ec9caa68a558f7347d55991f7a254fa5.tar.xz |
mem: Add unused prefetch counter in caches
Added stat to the cache to account for HardPF'ed blocks that are evicted
before being referenced (over-prefetching).
Diffstat (limited to 'src/mem/cache/base.hh')
-rw-r--r-- | src/mem/cache/base.hh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mem/cache/base.hh b/src/mem/cache/base.hh index cd21bce91..9275eb453 100644 --- a/src/mem/cache/base.hh +++ b/src/mem/cache/base.hh @@ -387,6 +387,9 @@ class BaseCache : public MemObject /** The number of cache copies performed. */ Stats::Scalar cacheCopies; + /** The number of times a HW-prefetched block is evicted w/o reference. */ + Stats::Scalar unusedPrefetches; + /** Number of blocks written back per thread. */ Stats::Vector writebacks; |