config: Rename clock option to Ruby clock
authorAkash Bagdia <akash.bagdia@arm.com>
Thu, 27 Jun 2013 09:49:49 +0000 (05:49 -0400)
committerAkash Bagdia <akash.bagdia@arm.com>
Thu, 27 Jun 2013 09:49:49 +0000 (05:49 -0400)
This patch changes the 'clock' option to 'ruby-clock' as it is only
used by Ruby.

configs/common/Options.py
configs/ruby/Ruby.py

index aa4d65ead68726eb566b0b24e1e0eeb6b0a013a3..6c97f547f621c8799cc23a64d47e671cb64d0334 100644 (file)
@@ -77,7 +77,6 @@ def addCommonOptions(parser):
                       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
index a11ff53c361c7c50a59e5ffb55513b5cf325cace..5c5e84197184f8a9b2f0d11e743b4209859306e6 100644 (file)
@@ -48,6 +48,10 @@ def define_options(parser):
     # 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_topology(controllers, options):
 
 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