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:
@@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user