diff options
author | Anthony Gutierrez <atgutier@umich.edu> | 2013-01-28 20:19:42 -0500 |
---|---|---|
committer | Anthony Gutierrez <atgutier@umich.edu> | 2013-01-28 20:19:42 -0500 |
commit | af0f8b31dbbc105c1a07d94265824cee4bda0c55 (patch) | |
tree | 5b9f39aa91470e9ecf38f4fe4506eb583cceef36 /src/mem | |
parent | 25c3e734187c9be14f748864678b808b3c1b118b (diff) | |
download | gem5-af0f8b31dbbc105c1a07d94265824cee4bda0c55.tar.xz |
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.
Diffstat (limited to 'src/mem')
-rw-r--r-- | src/mem/cache/base.cc | 3 | ||||
-rw-r--r-- | src/mem/cache/base.hh | 3 |
2 files changed, 0 insertions, 6 deletions
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; diff --git a/src/mem/cache/base.hh b/src/mem/cache/base.hh index e8adacfa1..b9b42da78 100644 --- a/src/mem/cache/base.hh +++ b/src/mem/cache/base.hh @@ -287,9 +287,6 @@ class BaseCache : public MemObject /** The number of misses to trigger an exit event. */ Counter missCount; - /** The drain event. */ - DrainManager *drainManager; - /** * The address range to which the cache responds on the CPU side. * Normally this is all possible memory addresses. */ |