From abfb99780033f9abf68382fb9eb29e1af1a869ee Mon Sep 17 00:00:00 2001 From: Pau Cabre Date: Fri, 4 Dec 2015 17:54:03 -0600 Subject: [PATCH] cpu: fix unitialized variable which may cause assertion failure The assert in lsq_unit_impl.hh line 963 needs pktPending to be initialized to NULL (I got the assertion failure several times without the fix). Committed by: Nilay Vaish --- src/cpu/o3/lsq_unit_impl.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cpu/o3/lsq_unit_impl.hh b/src/cpu/o3/lsq_unit_impl.hh index 0377faffa..288f6271e 100644 --- a/src/cpu/o3/lsq_unit_impl.hh +++ b/src/cpu/o3/lsq_unit_impl.hh @@ -143,7 +143,8 @@ LSQUnit::completeDataAccess(PacketPtr pkt) template LSQUnit::LSQUnit() : loads(0), stores(0), storesToWB(0), cacheBlockMask(0), stalled(false), - isStoreBlocked(false), storeInFlight(false), hasPendingPkt(false) + isStoreBlocked(false), storeInFlight(false), hasPendingPkt(false), + pendingPkt(nullptr) { } -- 2.30.2