diff options
author | Andreas Hansson <andreas.hansson@arm.com> | 2013-05-30 12:53:57 -0400 |
---|---|---|
committer | Andreas Hansson <andreas.hansson@arm.com> | 2013-05-30 12:53:57 -0400 |
commit | e1e73c5f395504647344d3eaa08a5300591896f8 (patch) | |
tree | 9a978a60a1f5abcb11093e6dcecc6961b5a5fee3 /src/mem/coherent_bus.hh | |
parent | 82397921a5e1ba4cd1e6b5a39f2b9407161d8818 (diff) | |
download | gem5-e1e73c5f395504647344d3eaa08a5300591896f8.tar.xz |
mem: Use unordered set in bus request tracking
This patch changes the set used to track outstanding requests to an
unordered set (part of C++11 STL). There is no need to maintain the
order, and hopefully there might even be a small performance benefit.
Diffstat (limited to 'src/mem/coherent_bus.hh')
-rw-r--r-- | src/mem/coherent_bus.hh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mem/coherent_bus.hh b/src/mem/coherent_bus.hh index 203d7f6b3..837cc23d8 100644 --- a/src/mem/coherent_bus.hh +++ b/src/mem/coherent_bus.hh @@ -51,6 +51,7 @@ #ifndef __MEM_COHERENT_BUS_HH__ #define __MEM_COHERENT_BUS_HH__ +#include "base/hashmap.hh" #include "mem/bus.hh" #include "params/CoherentBus.hh" @@ -222,7 +223,7 @@ class CoherentBus : public BaseBus * we generated and which ones were merely forwarded. This is used * in the coherent bus when coherency responses come back. */ - std::set<RequestPtr> outstandingReq; + m5::hash_set<RequestPtr> outstandingReq; /** * Keep a pointer to the system to be allow to querying memory system |