From 05c4c2b566ce351ab217b2bd7035562aa7a76570 Mon Sep 17 00:00:00 2001 From: "Daniel R. Carvalho" Date: Wed, 13 Jun 2018 10:58:49 +0200 Subject: [PATCH] mem-cache: Initialize CacheBlk data pointer Initialize CacheBlk's data pointer as a nullptr. Change-Id: Ice85b4b11495cad4b0a160ccb9efe1be673e57e2 Reviewed-on: https://gem5-review.googlesource.com/11097 Reviewed-by: Nikos Nikoleris Reviewed-by: Jason Lowe-Power Maintainer: Nikos Nikoleris --- src/mem/cache/blk.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mem/cache/blk.hh b/src/mem/cache/blk.hh index 1b796608f..48deef52a 100644 --- a/src/mem/cache/blk.hh +++ b/src/mem/cache/blk.hh @@ -166,7 +166,7 @@ class CacheBlk : public ReplaceableEntry std::list lockList; public: - CacheBlk() + CacheBlk() : data(nullptr) { invalidate(); } -- 2.30.2