mem-cache: Make cache warmup percentage a parameter.
authorDaniel R. Carvalho <odanrc@yahoo.com.br>
Wed, 7 Feb 2018 13:49:55 +0000 (14:49 +0100)
committerDaniel Carvalho <mr.danrc@gmail.com>
Thu, 8 Feb 2018 13:43:53 +0000 (13:43 +0000)
commit5a3b9ca5833815641c355833040197614f8b147d
tree30628f1ba5329add10c37503f05aef1746d7ffed
parent718b53dc441abb80a8ba40d2ae22b40fd1c83427
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>
src/mem/cache/Cache.py
src/mem/cache/tags/Tags.py
src/mem/cache/tags/base.cc
src/mem/cache/tags/base.hh
src/mem/cache/tags/base_set_assoc.cc
src/mem/cache/tags/fa_lru.cc