changeset 683c43a5eeae in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=683c43a5eeae
description:
Ruby Set: Move NUMBER_WORDS_PER_SET to Set.hh
This constant is currently in System.hh, but is only used in Set.hh. It
is being moved to Set.hh to remove this artificial dependence of Set.hh
on System.hh.
diffstat:
src/mem/ruby/common/Set.hh | 16 ++++++++++++++--
src/mem/ruby/system/System.hh | 13 -------------
2 files changed, 14 insertions(+), 15 deletions(-)
diffs (49 lines):
diff -r 58885e2e8a88 -r 683c43a5eeae src/mem/ruby/common/Set.hh
--- a/src/mem/ruby/common/Set.hh Thu Jan 05 11:04:25 2012 -0600
+++ b/src/mem/ruby/common/Set.hh Fri Jan 06 05:11:07 2012 -0600
@@ -35,8 +35,20 @@
#include <iostream>
#include <limits>
-#include "mem/ruby/common/Global.hh"
-#include "mem/ruby/system/System.hh"
+#include "mem/ruby/common/TypeDefines.hh"
+
+/*
+ * This defines the number of longs (32-bits on 32 bit machines,
+ * 64-bit on 64-bit AMD machines) to use to hold the set...
+ * the default is 4, allowing 128 or 256 different members
+ * of the set.
+ *
+ * This should never need to be changed for correctness reasons,
+ * though increasing it will increase performance for larger
+ * set sizes at the cost of a (much) larger memory footprint
+ *
+ */
+const int NUMBER_WORDS_PER_SET = 1;
class Set
{
diff -r 58885e2e8a88 -r 683c43a5eeae src/mem/ruby/system/System.hh
--- a/src/mem/ruby/system/System.hh Thu Jan 05 11:04:25 2012 -0600
+++ b/src/mem/ruby/system/System.hh Fri Jan 06 05:11:07 2012 -0600
@@ -50,19 +50,6 @@
class Profiler;
class Tracer;
-/*
- * This defines the number of longs (32-bits on 32 bit machines,
- * 64-bit on 64-bit AMD machines) to use to hold the set...
- * the default is 4, allowing 128 or 256 different members
- * of the set.
- *
- * This should never need to be changed for correctness reasons,
- * though increasing it will increase performance for larger
- * set sizes at the cost of a (much) larger memory footprint
- *
- */
-const int NUMBER_WORDS_PER_SET = 1;
-
class RubySystem : public SimObject
{
public:
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev