changeset 82491f9ed266 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=82491f9ed266
description:
        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.

diffstat:

 src/dev/dma_device.cc |  2 +-
 src/dev/dma_device.hh |  3 ---
 2 files changed, 1 insertions(+), 4 deletions(-)

diffs (25 lines):

diff -r c8d4b0595448 -r 82491f9ed266 src/dev/dma_device.cc
--- a/src/dev/dma_device.cc     Fri Jul 27 16:08:04 2012 -0400
+++ b/src/dev/dma_device.cc     Fri Jul 27 16:08:05 2012 -0400
@@ -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 -r c8d4b0595448 -r 82491f9ed266 src/dev/dma_device.hh
--- a/src/dev/dma_device.hh     Fri Jul 27 16:08:04 2012 -0400
+++ b/src/dev/dma_device.hh     Fri Jul 27 16:08:05 2012 -0400
@@ -83,9 +83,6 @@
     /** 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;
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to