diff options
author | Akash Bagdia <akash.bagdia@arm.com> | 2013-06-27 05:49:49 -0400 |
---|---|---|
committer | Akash Bagdia <akash.bagdia@arm.com> | 2013-06-27 05:49:49 -0400 |
commit | 076d04a653f5a4252c6c16e010ad0d7bf36c1674 (patch) | |
tree | 1be09e01ab286960ae6fcd5d767bfb0e10270ec2 /configs/splash2 | |
parent | 4459b305251109ff147d72142452e25c74542ebd (diff) | |
download | gem5-076d04a653f5a4252c6c16e010ad0d7bf36c1674.tar.xz |
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.
Diffstat (limited to 'configs/splash2')
-rw-r--r-- | configs/splash2/cluster.py | 1 | ||||
-rw-r--r-- | configs/splash2/run.py | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/configs/splash2/cluster.py b/configs/splash2/cluster.py index d7e32a414..1b9397d6d 100644 --- a/configs/splash2/cluster.py +++ b/configs/splash2/cluster.py @@ -214,6 +214,7 @@ else: system = System(cpu = all_cpus, l1_ = all_l1s, l1bus_ = all_l1buses, physmem = SimpleMemory(), membus = CoherentBus(clock = busFrequency)) +system.clock = '1GHz' system.toL2bus = CoherentBus(clock = busFrequency) system.l2 = L2(size = options.l2size, assoc = 8) diff --git a/configs/splash2/run.py b/configs/splash2/run.py index 48e255c52..6880f8db5 100644 --- a/configs/splash2/run.py +++ b/configs/splash2/run.py @@ -199,6 +199,7 @@ else: # ---------------------- system = System(cpu = cpus, physmem = SimpleMemory(), membus = CoherentBus(clock = busFrequency)) +system.clock = '1GHz' system.toL2bus = CoherentBus(clock = busFrequency) system.l2 = L2(size = options.l2size, assoc = 8) |