summaryrefslogtreecommitdiff
path: root/src/mem/cache
diff options
context:
space:
mode:
authorDaniel R. Carvalho <odanrc@yahoo.com.br>2018-10-03 14:37:15 +0200
committerDaniel Carvalho <odanrc@yahoo.com.br>2018-10-05 18:42:49 +0000
commitbb007aa738b5383fc038b134aaf7d2082a6a22c8 (patch)
tree54905de2110737ec7571535d97ac1b794fc9e2ae /src/mem/cache
parentdf9f2984c776ef4697e71408d8a7c230d4d747da (diff)
downloadgem5-bb007aa738b5383fc038b134aaf7d2082a6a22c8.tar.xz
mem-cache: Fix FALRU inCachesMask initialization
inCachesMask is not being initialized, which triggers an assertion on insertion. Fix this by implementing a default constructor for the FALRUBlk. Change-Id: I587cf5e0191c4587d938e6ab6036ec1b32f37793 Signed-off-by: Daniel R. Carvalho <odanrc@yahoo.com.br> Reviewed-on: https://gem5-review.googlesource.com/c/13207 Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com> Reviewed-by: Jason Lowe-Power <jason@lowepower.com> Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com> Maintainer: Jason Lowe-Power <jason@lowepower.com>
Diffstat (limited to 'src/mem/cache')
-rw-r--r--src/mem/cache/tags/fa_lru.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mem/cache/tags/fa_lru.hh b/src/mem/cache/tags/fa_lru.hh
index 876219b00..55362a424 100644
--- a/src/mem/cache/tags/fa_lru.hh
+++ b/src/mem/cache/tags/fa_lru.hh
@@ -82,6 +82,8 @@ typedef uint32_t CachesMask;
class FALRUBlk : public CacheBlk
{
public:
+ FALRUBlk() : CacheBlk(), prev(nullptr), next(nullptr), inCachesMask(0) {}
+
/** The previous block in LRU order. */
FALRUBlk *prev;
/** The next block in LRU order. */