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:
parent
e746231682
commit
abfb997800
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue