summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel R. Carvalho <odanrc@yahoo.com.br>2018-04-19 15:55:59 +0200
committerDaniel Carvalho <odanrc@yahoo.com.br>2018-04-19 15:29:21 +0000
commit26f6b94584c56ffe23336690ec899c78db517261 (patch)
tree23f99928a4354a325dbc57a0f260d94eb007fda3
parent1de574fcbdf009eacda9eae1b239e7c367e2cb79 (diff)
downloadgem5-26f6b94584c56ffe23336690ec899c78db517261.tar.xz
mem-cache: Use secure flag in FALRU's findBlock
FALRU's findBlock() must use the secure flag to assure proper functionality. Change-Id: I54e9fbd3c9093b3e8043c4c6c850b74a8f1f5ec0 Reviewed-on: https://gem5-review.googlesource.com/10081 Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com> Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>
-rw-r--r--src/mem/cache/tags/fa_lru.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mem/cache/tags/fa_lru.cc b/src/mem/cache/tags/fa_lru.cc
index 49c0d340a..f515c4db6 100644
--- a/src/mem/cache/tags/fa_lru.cc
+++ b/src/mem/cache/tags/fa_lru.cc
@@ -179,6 +179,7 @@ FALRU::findBlock(Addr addr, bool is_secure) const
if (blk && blk->isValid()) {
assert(blk->tag == blkAddr);
+ assert(blk->isSecure() == is_secure);
} else {
blk = nullptr;
}