From 10f82934be924f265af4f10b15ca66106171f770 Mon Sep 17 00:00:00 2001 From: Andreas Hansson Date: Wed, 1 Oct 2014 08:05:51 -0400 Subject: arm: More UBSan cleanups after additional full-system runs Some incorrect casting to IntRegIndex, and a few uninitialized members in the i8254xGBe device. --- src/dev/i8254xGBe.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/dev') diff --git a/src/dev/i8254xGBe.cc b/src/dev/i8254xGBe.cc index e65baba89..d86d7b486 100644 --- a/src/dev/i8254xGBe.cc +++ b/src/dev/i8254xGBe.cc @@ -821,8 +821,9 @@ IGbE::chkInterrupt() template IGbE::DescCache::DescCache(IGbE *i, const std::string n, int s) : igbe(i), _name(n), cachePnt(0), size(s), curFetching(0), - wbOut(0), pktPtr(NULL), wbDelayEvent(this), - fetchDelayEvent(this), fetchEvent(this), wbEvent(this) + wbOut(0), moreToWb(false), wbAlignment(0), pktPtr(NULL), + wbDelayEvent(this), fetchDelayEvent(this), fetchEvent(this), + wbEvent(this) { fetchBuf = new T[size]; wbBuf = new T[size]; @@ -1540,7 +1541,8 @@ IGbE::RxDescCache::unserialize(Checkpoint *cp, const std::string §ion) IGbE::TxDescCache::TxDescCache(IGbE *i, const std::string n, int s) : DescCache(i,n, s), pktDone(false), isTcp(false), - pktWaiting(false), completionAddress(0), completionEnabled(false), + pktWaiting(false), pktMultiDesc(false), + completionAddress(0), completionEnabled(false), useTso(false), tsoHeaderLen(0), tsoMss(0), tsoTotalLen(0), tsoUsedLen(0), tsoPrevSeq(0), tsoPktPayloadBytes(0), tsoLoadedHeader(false), tsoPktHasHeader(false), tsoDescBytesUsed(0), tsoCopyBytes(0), tsoPkts(0), -- cgit v1.2.3