From af0f8b31dbbc105c1a07d94265824cee4bda0c55 Mon Sep 17 00:00:00 2001 From: Anthony Gutierrez Date: Mon, 28 Jan 2013 20:19:42 -0500 Subject: cache: remove drainManager because it's not used the cache drainManager is set but never cleared, this is because the cache itself does not need to be drained and thus never triggers a signalDrainDone(). because the drainManager variable is not used properly and does not appear to be necessary it has been removed with this patch. --- src/mem/cache/base.cc | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/mem/cache/base.cc') diff --git a/src/mem/cache/base.cc b/src/mem/cache/base.cc index d126906d0..476c086ed 100644 --- a/src/mem/cache/base.cc +++ b/src/mem/cache/base.cc @@ -77,7 +77,6 @@ BaseCache::BaseCache(const Params *p) blocked(0), noTargetMSHR(NULL), missCount(p->max_miss_count), - drainManager(NULL), addrRanges(p->addr_ranges.begin(), p->addr_ranges.end()), system(p->system) { @@ -752,8 +751,6 @@ BaseCache::drain(DrainManager *dm) // Set status if (count != 0) { - drainManager = dm; - setDrainState(Drainable::Draining); DPRINTF(Drain, "Cache not drained\n"); return count; -- cgit v1.2.3