summaryrefslogtreecommitdiff
path: root/src/cpu/o3/lsq_unit_impl.hh
diff options
context:
space:
mode:
authorPau Cabre <pau.cabre@metempsy.com>2015-12-04 17:54:03 -0600
committerPau Cabre <pau.cabre@metempsy.com>2015-12-04 17:54:03 -0600
commitabfb99780033f9abf68382fb9eb29e1af1a869ee (patch)
treeb280509ea861e51bccc62cb49e1f7f8c7e15ed68 /src/cpu/o3/lsq_unit_impl.hh
parente746231682b2a314412c02db64226a1355073d3a (diff)
downloadgem5-abfb99780033f9abf68382fb9eb29e1af1a869ee.tar.xz
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 <nilay@cs.wisc.edu>
Diffstat (limited to 'src/cpu/o3/lsq_unit_impl.hh')
-rw-r--r--src/cpu/o3/lsq_unit_impl.hh3
1 files changed, 2 insertions, 1 deletions
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<Impl>::completeDataAccess(PacketPtr pkt)
template <class Impl>
LSQUnit<Impl>::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)
{
}