summaryrefslogtreecommitdiff
path: root/src/mem/bus.hh
diff options
context:
space:
mode:
authorKevin Lim <ktlim@umich.edu>2006-11-07 14:25:54 -0500
committerKevin Lim <ktlim@umich.edu>2006-11-07 14:25:54 -0500
commit8ba73da056ae8b34713dc5b927d4ceb238db969a (patch)
treed374baa289829a81a33f2e6c0f8de840cce27f8b /src/mem/bus.hh
parent244e0c884c60c141ea1bc63bb93e0aee25d6a854 (diff)
downloadgem5-8ba73da056ae8b34713dc5b927d4ceb238db969a.tar.xz
Fix up bus draining and add draining to the caches.
src/mem/bus.cc: Fix up draining to work properly. src/mem/bus.hh: Initialize drainEvent to NULL. src/mem/cache/base_cache.cc: src/mem/cache/base_cache.hh: Add draining to the caches. --HG-- extra : convert_revision : 3082220a75d50876f10909f9f99bec535889f818
Diffstat (limited to 'src/mem/bus.hh')
-rw-r--r--src/mem/bus.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mem/bus.hh b/src/mem/bus.hh
index 1d1cfde89..ff1d2545d 100644
--- a/src/mem/bus.hh
+++ b/src/mem/bus.hh
@@ -257,8 +257,8 @@ class Bus : public MemObject
Bus(const std::string &n, int bus_id, int _clock, int _width,
bool responder_set)
: MemObject(n), busId(bus_id), clock(_clock), width(_width),
- tickNextIdle(0), busIdle(this), inRetry(false), defaultPort(NULL),
- responderSet(responder_set)
+ tickNextIdle(0), drainEvent(NULL), busIdle(this), inRetry(false),
+ defaultPort(NULL), responderSet(responder_set)
{
//Both the width and clock period must be positive
if (width <= 0)