mem-cache: Initialize CacheBlk data pointer
authorDaniel R. Carvalho <odanrc@yahoo.com.br>
Wed, 13 Jun 2018 08:58:49 +0000 (10:58 +0200)
committerDaniel Carvalho <odanrc@yahoo.com.br>
Fri, 15 Jun 2018 12:06:20 +0000 (12:06 +0000)
Initialize CacheBlk's data pointer as a nullptr.

Change-Id: Ice85b4b11495cad4b0a160ccb9efe1be673e57e2
Reviewed-on: https://gem5-review.googlesource.com/11097
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>

src/mem/cache/blk.hh

index 1b796608f6d79d0082e335971b56f6894ffed30a..48deef52a4a32f3a805794476743cce309bb50b1 100644 (file)
@@ -166,7 +166,7 @@ class CacheBlk : public ReplaceableEntry
     std::list<Lock> lockList;
 
   public:
-    CacheBlk()
+    CacheBlk() : data(nullptr)
     {
         invalidate();
     }