From: Steve Reinhardt Date: Sun, 22 Jul 2007 07:07:26 +0000 (-0400) Subject: A few minor non-debug compilation issues. X-Git-Tag: m5_2.0_beta4~195^2~42 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1edd143b688e9bd7285344ee8d2f5bd8cb3dc12d;p=gem5.git A few minor non-debug compilation issues. --HG-- extra : convert_revision : d59a5cad6187a2229dddd1a48282ebd2923d1d8d --- diff --git a/src/mem/cache/cache_impl.hh b/src/mem/cache/cache_impl.hh index 9fb5cdbde..c8c1a239c 100644 --- a/src/mem/cache/cache_impl.hh +++ b/src/mem/cache/cache_impl.hh @@ -821,7 +821,9 @@ Cache::handleFill(PacketPtr pkt, BlkType *blk, PacketList &writebacks) { Addr addr = pkt->getAddr(); +#if TRACING_ON CacheBlk::State old_state = blk ? blk->status : 0; +#endif if (blk == NULL) { // better have read new data... diff --git a/src/mem/cache/miss/mshr_queue.cc b/src/mem/cache/miss/mshr_queue.cc index 56ec62a7d..4d3cf30e1 100644 --- a/src/mem/cache/miss/mshr_queue.cc +++ b/src/mem/cache/miss/mshr_queue.cc @@ -123,6 +123,7 @@ MSHRQueue::addToReadyList(MSHR *mshr) } } assert(false); + return end; // keep stupid compilers happy } diff --git a/src/mem/cache/tags/split.cc b/src/mem/cache/tags/split.cc index e22ccbb96..ae284766d 100644 --- a/src/mem/cache/tags/split.cc +++ b/src/mem/cache/tags/split.cc @@ -300,7 +300,7 @@ Split::findBlock(Addr addr) const SplitBlk* Split::findReplacement(Addr addr, PacketList &writebacks) { - SplitBlk *blk; + SplitBlk *blk = NULL; assert(0); #if 0