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>
This commit is contained in:
Pau Cabre 2015-12-04 17:54:03 -06:00
parent e746231682
commit abfb997800

View file

@ -143,7 +143,8 @@ LSQUnit<Impl>::completeDataAccess(PacketPtr pkt)
template <class Impl> template <class Impl>
LSQUnit<Impl>::LSQUnit() LSQUnit<Impl>::LSQUnit()
: loads(0), stores(0), storesToWB(0), cacheBlockMask(0), stalled(false), : loads(0), stores(0), storesToWB(0), cacheBlockMask(0), stalled(false),
isStoreBlocked(false), storeInFlight(false), hasPendingPkt(false) isStoreBlocked(false), storeInFlight(false), hasPendingPkt(false),
pendingPkt(nullptr)
{ {
} }