diff options
author | Pau Cabre <pau.cabre@metempsy.com> | 2015-12-04 17:54:03 -0600 |
---|---|---|
committer | Pau Cabre <pau.cabre@metempsy.com> | 2015-12-04 17:54:03 -0600 |
commit | abfb99780033f9abf68382fb9eb29e1af1a869ee (patch) | |
tree | b280509ea861e51bccc62cb49e1f7f8c7e15ed68 /src | |
parent | e746231682b2a314412c02db64226a1355073d3a (diff) | |
download | gem5-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')
-rw-r--r-- | src/cpu/o3/lsq_unit_impl.hh | 3 |
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) { } |