summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel R. Carvalho <odanrc@yahoo.com.br>2018-06-13 10:58:49 +0200
committerDaniel Carvalho <odanrc@yahoo.com.br>2018-06-15 12:06:20 +0000
commit05c4c2b566ce351ab217b2bd7035562aa7a76570 (patch)
tree4839b3a2839bf506833797175550216dbe902438 /src
parenta59db0e910417e6845e4b461133b2a93b56e0141 (diff)
downloadgem5-05c4c2b566ce351ab217b2bd7035562aa7a76570.tar.xz
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 <nikos.nikoleris@arm.com> Reviewed-by: Jason Lowe-Power <jason@lowepower.com> Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>
Diffstat (limited to 'src')
-rw-r--r--src/mem/cache/blk.hh2
1 files changed, 1 insertions, 1 deletions
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<Lock> lockList;
public:
- CacheBlk()
+ CacheBlk() : data(nullptr)
{
invalidate();
}