changeset f876d08c7b21 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=f876d08c7b21
description:
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 <[email protected]>
diffstat:
src/cpu/o3/lsq_unit_impl.hh | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r 8b3c0bd14c01 -r f876d08c7b21 src/cpu/o3/lsq_unit_impl.hh
--- a/src/cpu/o3/lsq_unit_impl.hh Fri Dec 04 17:25:45 2015 -0600
+++ b/src/cpu/o3/lsq_unit_impl.hh Fri Dec 04 17:54:03 2015 -0600
@@ -143,7 +143,8 @@
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)
{
}
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev