From 0c58106b6e27445e259d82bb13e2a5b6ae991bb6 Mon Sep 17 00:00:00 2001 From: Andreas Hansson Date: Mon, 15 Oct 2012 08:12:25 -0400 Subject: [PATCH] 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). --- src/mem/bus.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mem/bus.hh b/src/mem/bus.hh index 849bef639..26729f7cc 100644 --- a/src/mem/bus.hh +++ b/src/mem/bus.hh @@ -51,7 +51,7 @@ #ifndef __MEM_BUS_HH__ #define __MEM_BUS_HH__ -#include +#include #include #include "base/addr_range_map.hh" @@ -213,7 +213,7 @@ class BaseBus : public MemObject * An array of ports that retry should be called * on because the original send failed for whatever reason. */ - std::list retryList; + std::deque retryList; /** * Release the bus layer after being occupied and return to an -- 2.30.2