summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Gutierrez <atgutier@umich.edu>2012-07-27 16:08:05 -0400
committerAnthony Gutierrez <atgutier@umich.edu>2012-07-27 16:08:05 -0400
commit630068be6f7b6dc5c612867c764c37e41fd90a4a (patch)
treea2798714714292221f43a1d495085f6487e5b25a
parent8133f2460fa8a6201deb361989a1179a163140fb (diff)
downloadgem5-630068be6f7b6dc5c612867c764c37e41fd90a4a.tar.xz
dma: remove unused variable
this patch removes the actionInProgress field from the DmaPort class. this variable is only defined and initiated in the ctor. it is never used.
-rw-r--r--src/dev/dma_device.cc2
-rw-r--r--src/dev/dma_device.hh3
2 files changed, 1 insertions, 4 deletions
diff --git a/src/dev/dma_device.cc b/src/dev/dma_device.cc
index a50dd933e..ddc8e7386 100644
--- a/src/dev/dma_device.cc
+++ b/src/dev/dma_device.cc
@@ -49,7 +49,7 @@
DmaPort::DmaPort(MemObject *dev, System *s, Tick min_backoff, Tick max_backoff)
: MasterPort(dev->name() + ".dma", dev), device(dev), sys(s),
masterId(s->getMasterId(dev->name())),
- pendingCount(0), actionInProgress(0), drainEvent(NULL),
+ pendingCount(0), drainEvent(NULL),
backoffTime(0), minBackoffDelay(min_backoff),
maxBackoffDelay(max_backoff), inRetry(false),
backoffEvent(this)
diff --git a/src/dev/dma_device.hh b/src/dev/dma_device.hh
index 8b40cc7e4..ccf388fa4 100644
--- a/src/dev/dma_device.hh
+++ b/src/dev/dma_device.hh
@@ -83,9 +83,6 @@ class DmaPort : public MasterPort
/** Number of outstanding packets the dma port has. */
int pendingCount;
- /** If a dmaAction is in progress. */
- int actionInProgress;
-
/** If we need to drain, keep the drain event around until we're done
* here.*/
Event *drainEvent;