diff options
author | Daniel R. Carvalho <odanrc@yahoo.com.br> | 2018-02-07 14:49:55 +0100 |
---|---|---|
committer | Daniel Carvalho <mr.danrc@gmail.com> | 2018-02-08 13:43:53 +0000 |
commit | 5a3b9ca5833815641c355833040197614f8b147d (patch) | |
tree | 30628f1ba5329add10c37503f05aef1746d7ffed /src/mem/cache/tags/base.hh | |
parent | 718b53dc441abb80a8ba40d2ae22b40fd1c83427 (diff) | |
download | gem5-5a3b9ca5833815641c355833040197614f8b147d.tar.xz |
mem-cache: Make cache warmup percentage a parameter.
The warmupPercentage is the percentage of different tags (based on the
cache size) that need to be touched in order to warm up the cache.
If Warmup failed (i.e., not enough tags were touched), warmup_cycle = 0.
The warmup is not being taken into account to calculate the stats (i.e.,
stats acquisition starts before cache is warmed up). Maybe in the future
this functionality should be added.
Change-Id: I2b93a99c19fddb99a4c60e6d4293fa355744d05e
Reviewed-on: https://gem5-review.googlesource.com/8061
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>
Diffstat (limited to 'src/mem/cache/tags/base.hh')
-rw-r--r-- | src/mem/cache/tags/base.hh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mem/cache/tags/base.hh b/src/mem/cache/tags/base.hh index 5c9f46a41..2c528a983 100644 --- a/src/mem/cache/tags/base.hh +++ b/src/mem/cache/tags/base.hh @@ -86,7 +86,7 @@ class BaseTags : public ClockedObject * The number of tags that need to be touched to meet the warmup * percentage. */ - int warmupBound; + const unsigned warmupBound; /** Marked true when the cache is warmed up. */ bool warmedUp; @@ -95,6 +95,7 @@ class BaseTags : public ClockedObject // Statistics /** + * TODO: It would be good if these stats were acquired after warmup. * @addtogroup CacheStatistics * @{ */ @@ -120,7 +121,7 @@ class BaseTags : public ClockedObject */ Stats::Formula avgRefs; - /** The cycle that the warmup percentage was hit. */ + /** The cycle that the warmup percentage was hit. 0 on failure. */ Stats::Scalar warmupCycle; /** Average occupancy of each requestor using the cache */ |