summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Hansson <andreas.hansson@arm.com>2012-10-15 08:12:25 -0400
committerAndreas Hansson <andreas.hansson@arm.com>2012-10-15 08:12:25 -0400
commit0c58106b6e27445e259d82bb13e2a5b6ae991bb6 (patch)
tree697a030b51f75695933e77f826b481bacd3587a2
parent93a159875aa081cf3452754b890d83ae7c2bf943 (diff)
downloadgem5-0c58106b6e27445e259d82bb13e2a5b6ae991bb6.tar.xz
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).
-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 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 <list>
+#include <deque>
#include <set>
#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<PortClass*> retryList;
+ std::deque<PortClass*> retryList;
/**
* Release the bus layer after being occupied and return to an