mem-cache: Optimize sector valid and secure check
authorDaniel R. Carvalho <odanrc@yahoo.com.br>
Thu, 25 Oct 2018 15:52:26 +0000 (17:52 +0200)
committerDaniel Carvalho <odanrc@yahoo.com.br>
Mon, 3 Dec 2018 15:44:36 +0000 (15:44 +0000)
commitab31213316a6334660eff8fa47434c0e25f2b5c0
tree6a3b08dc29a5a1382f147d571455e63c332249bc
parent9af1214ffe48178c0dadfb874fd62bd0ff2e0f31
mem-cache: Optimize sector valid and secure check

Previously a loop was being done to check whether the
block was valid/secure or not. Variables have been
added to skip this loop and save and update sector
block state when sub-blocks are validated, invalidated
and secured.

Change-Id: Ie1734f7dfda9698c7bf22a1fcbfc47ffb9239cea
Signed-off-by: Daniel R. Carvalho <odanrc@yahoo.com.br>
Reviewed-on: https://gem5-review.googlesource.com/c/14363
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
src/mem/cache/tags/sector_blk.cc
src/mem/cache/tags/sector_blk.hh