From: Nikos Nikoleris Date: Mon, 31 Oct 2016 15:52:15 +0000 (+0000) Subject: mem-cache: Remove mumBlock redundant initialiation from FALRU X-Git-Tag: v19.0.0.0~2266 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1d4717ab7ece153206b0bd0bd8e1acc9497cbf05;p=gem5.git mem-cache: Remove mumBlock redundant initialiation from FALRU Change-Id: Id3afec0a62446d6d0f44ccb655032343037637e0 Reviewed-by: Curtis Dunham Reviewed-on: https://gem5-review.googlesource.com/8281 Reviewed-by: Daniel Carvalho Maintainer: Nikos Nikoleris --- diff --git a/src/mem/cache/tags/base.hh b/src/mem/cache/tags/base.hh index 2c528a983..9714d9aa2 100644 --- a/src/mem/cache/tags/base.hh +++ b/src/mem/cache/tags/base.hh @@ -91,7 +91,7 @@ class BaseTags : public ClockedObject 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 dfd4c4060..1ee34b7d8 100644 --- a/src/mem/cache/tags/fa_lru.cc +++ b/src/mem/cache/tags/fa_lru.cc @@ -73,8 +73,6 @@ FALRU::FALRU(const Params *p) cacheMask = 0; } - numBlocks = size/blkSize; - blks = new FALRUBlk[numBlocks]; head = &(blks[0]); tail = &(blks[numBlocks-1]);