changeset b27d3e9a333f in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=b27d3e9a333f
description:
        Mem: Use deque instead of list for bus retries

        This patch changes the data structure used to keep track of ports that
        should be told to retry. As the bus is doing this in an FCFS way,
        there is no point having a list. A deque is a better match (and is at
        least in theory a better choice from a performance point of view).

diffstat:

 src/mem/bus.hh |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 90dd57ca9a7e -r b27d3e9a333f src/mem/bus.hh
--- a/src/mem/bus.hh    Mon Oct 15 08:12:23 2012 -0400
+++ b/src/mem/bus.hh    Mon Oct 15 08:12:25 2012 -0400
@@ -51,7 +51,7 @@
 #ifndef __MEM_BUS_HH__
 #define __MEM_BUS_HH__
 
-#include <list>
+#include <deque>
 #include <set>
 
 #include "base/addr_range_map.hh"
@@ -213,7 +213,7 @@
          * An array of ports that retry should be called
          * on because the original send failed for whatever reason.
          */
-        std::list<PortClass*> retryList;
+        std::deque<PortClass*> retryList;
 
         /**
          * Release the bus layer after being occupied and return to an
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to