changeset d98f85e25441 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=d98f85e25441
description:
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:
src/mem/bus.hh | 1 -
src/mem/coherent_bus.hh | 3 ++-
2 files changed, 2 insertions(+), 2 deletions(-)
diffs (31 lines):
diff -r 03b21a385c47 -r d98f85e25441 src/mem/bus.hh
--- a/src/mem/bus.hh Thu May 30 12:53:57 2013 -0400
+++ b/src/mem/bus.hh Thu May 30 12:53:57 2013 -0400
@@ -52,7 +52,6 @@
#define __MEM_BUS_HH__
#include <deque>
-#include <set>
#include "base/addr_range_map.hh"
#include "base/types.hh"
diff -r 03b21a385c47 -r d98f85e25441 src/mem/coherent_bus.hh
--- a/src/mem/coherent_bus.hh Thu May 30 12:53:57 2013 -0400
+++ b/src/mem/coherent_bus.hh Thu May 30 12:53:57 2013 -0400
@@ -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 @@
* 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
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev