summaryrefslogtreecommitdiff
path: root/configs/common/Options.py
diff options
context:
space:
mode:
authorAkash Bagdia <akash.bagdia@arm.com>2013-06-27 05:49:49 -0400
committerAkash Bagdia <akash.bagdia@arm.com>2013-06-27 05:49:49 -0400
commit4459b305251109ff147d72142452e25c74542ebd (patch)
treea1fe5a5127f8549b00b930ac2e82080b0cfe1968 /configs/common/Options.py
parent7eccb1b779cb6458ed78ba73f2fdabe94fa805b3 (diff)
downloadgem5-4459b305251109ff147d72142452e25c74542ebd.tar.xz
config: Add a CPU clock command-line option
This patch adds a 'cpu_clock' command-line option and uses the value to assign clocks to components running at the CPU speed (L1 and L2 including the L2-bus). The configuration scripts are updated accordingly. The 'clock' option is left unchanged in this patch as it is still used by a number of components. In follow-on patches the latter will be disambiguated further.
Diffstat (limited to 'configs/common/Options.py')
-rw-r--r--configs/common/Options.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/configs/common/Options.py b/configs/common/Options.py
index f2bcbef0c..08881cf11 100644
--- a/configs/common/Options.py
+++ b/configs/common/Options.py
@@ -78,6 +78,9 @@ def addCommonOptions(parser):
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("--cpu-clock", action="store", type="string",
+ default='2GHz',
+ help="Clock for blocks running at CPU speed")
parser.add_option("--num-dirs", type="int", default=1)
parser.add_option("--num-l2caches", type="int", default=1)
parser.add_option("--num-l3caches", type="int", default=1)