commit | 1d4717ab7ece153206b0bd0bd8e1acc9497cbf05 | [log] [tgz] |
---|---|---|
author | Nikos Nikoleris <nikos.nikoleris@arm.com> | Mon Oct 31 15:52:15 2016 +0000 |
committer | Nikos Nikoleris <nikos.nikoleris@arm.com> | Fri Mar 02 18:41:13 2018 +0000 |
tree | d2f70fe360e8fc7470cfe0090290e8aa47bd48c8 | |
parent | e5d98f6e638455c81a4fba63492e4bbaf1cd7db1 [diff] |
mem-cache: Remove mumBlock redundant initialiation from FALRU Change-Id: Id3afec0a62446d6d0f44ccb655032343037637e0 Reviewed-by: Curtis Dunham <curtis.dunham@arm.com> Reviewed-on: https://gem5-review.googlesource.com/8281 Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br> Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>
diff --git a/src/mem/cache/tags/base.hh b/src/mem/cache/tags/base.hh index 2c528a9..9714d9a 100644 --- a/src/mem/cache/tags/base.hh +++ b/src/mem/cache/tags/base.hh
@@ -91,7 +91,7 @@ bool warmedUp; /** the number of blocks in the cache */ - unsigned numBlocks; + const unsigned numBlocks; // Statistics /**
diff --git a/src/mem/cache/tags/fa_lru.cc b/src/mem/cache/tags/fa_lru.cc index dfd4c40..1ee34b7 100644 --- a/src/mem/cache/tags/fa_lru.cc +++ b/src/mem/cache/tags/fa_lru.cc
@@ -73,8 +73,6 @@ cacheMask = 0; } - numBlocks = size/blkSize; - blks = new FALRUBlk[numBlocks]; head = &(blks[0]); tail = &(blks[numBlocks-1]);