From: Daniel R. Carvalho Date: Thu, 19 Apr 2018 13:55:59 +0000 (+0200) Subject: mem-cache: Use secure flag in FALRU's findBlock X-Git-Tag: v19.0.0.0~2143 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=26f6b94584c56ffe23336690ec899c78db517261;p=gem5.git 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 Maintainer: Nikos Nikoleris --- 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; }