changeset 39c75548bcd4 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=39c75548bcd4
description:
        config: Rename clock option to Ruby clock

        This patch changes the 'clock' option to 'ruby-clock' as it is only
        used by Ruby.

diffstat:

 configs/common/Options.py |  1 -
 configs/ruby/Ruby.py      |  6 +++++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r ccc428657233 -r 39c75548bcd4 configs/common/Options.py
--- a/configs/common/Options.py Thu Jun 27 05:49:49 2013 -0400
+++ b/configs/common/Options.py Thu Jun 27 05:49:49 2013 -0400
@@ -77,7 +77,6 @@
                       help="Enable basic block profiling for SimPoints")
     parser.add_option("--simpoint-interval", type="int", default=10000000,
                       help="SimPoint interval in num of instructions")
-    parser.add_option("--clock", action="store", type="string", default='2GHz')
     parser.add_option("--sys-clock", action="store", type="string",
                       default='1GHz',
                       help = """Top-level clock for blocks running at system
diff -r ccc428657233 -r 39c75548bcd4 configs/ruby/Ruby.py
--- a/configs/ruby/Ruby.py      Thu Jun 27 05:49:49 2013 -0400
+++ b/configs/ruby/Ruby.py      Thu Jun 27 05:49:49 2013 -0400
@@ -48,6 +48,10 @@
     # By default, ruby uses the simple timing cpu
     parser.set_defaults(cpu_type="timing")
 
+    parser.add_option("--ruby-clock", action="store", type="string",
+                      default='2GHz',
+                      help="Clock for blocks running at Ruby system's speed")
+
     # ruby network options
     parser.add_option("--topology", type="string", default="Crossbar",
                  help="check src/mem/ruby/network/topologies for complete set")
@@ -91,7 +95,7 @@
 
 def create_system(options, system, piobus = None, dma_ports = []):
 
-    system.ruby = RubySystem(clock = options.clock,
+    system.ruby = RubySystem(clock = options.ruby_clock,
                              stats_filename = options.ruby_stats,
                              no_mem_vec = options.use_map)
     ruby = system.ruby
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to