From 26f6b94584c56ffe23336690ec899c78db517261 Mon Sep 17 00:00:00 2001 From: "Daniel R. Carvalho" Date: Thu, 19 Apr 2018 15:55:59 +0200 Subject: [PATCH] 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 --- src/mem/cache/tags/fa_lru.cc | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.30.2