Daniel Carvalho has uploaded this change for review. ( https://gem5-review.googlesource.com/11097


Change subject: mem-cache: Initialize CacheBlk data pointer
......................................................................

mem-cache: Initialize CacheBlk data pointer

Initialize CacheBlk's data pointer as a nullptr.

Change-Id: Ice85b4b11495cad4b0a160ccb9efe1be673e57e2
---
M src/mem/cache/blk.hh
1 file changed, 1 insertion(+), 1 deletion(-)



diff --git a/src/mem/cache/blk.hh b/src/mem/cache/blk.hh
index 1b79660..48deef5 100644
--- a/src/mem/cache/blk.hh
+++ b/src/mem/cache/blk.hh
@@ -166,7 +166,7 @@
     std::list<Lock> lockList;

   public:
-    CacheBlk()
+    CacheBlk() : data(nullptr)
     {
         invalidate();
     }

--
To view, visit https://gem5-review.googlesource.com/11097
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: Ice85b4b11495cad4b0a160ccb9efe1be673e57e2
Gerrit-Change-Number: 11097
Gerrit-PatchSet: 1
Gerrit-Owner: Daniel Carvalho <oda...@yahoo.com.br>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list
gem5-dev@gem5.org
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to