From 076d04a653f5a4252c6c16e010ad0d7bf36c1674 Mon Sep 17 00:00:00 2001 From: Akash Bagdia Date: Thu, 27 Jun 2013 05:49:49 -0400 Subject: config: Add a system clock command-line option This patch adds a 'sys_clock' command-line option and use it to assign clocks to the system during instantiation. As part of this change, the default clock in the System class is removed and whenever a system is instantiated a system clock value must be set. A default value is provided for the command-line option. The configs and tests are updated accordingly. --- configs/example/ruby_fs.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'configs/example/ruby_fs.py') diff --git a/configs/example/ruby_fs.py b/configs/example/ruby_fs.py index e6239caf4..403e55584 100644 --- a/configs/example/ruby_fs.py +++ b/configs/example/ruby_fs.py @@ -93,6 +93,8 @@ elif buildEnv['TARGET_ISA'] == "x86": else: fatal("incapable of building non-alpha or non-x86 full system!") +system.clock = options.sys_clock + if options.kernel is not None: system.kernel = binary(options.kernel) -- cgit v1.2.3