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/example/se.py | |
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/example/se.py')
-rw-r--r-- | configs/example/se.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/configs/example/se.py b/configs/example/se.py index 000390080..3ff3f0c7d 100644 --- a/configs/example/se.py +++ b/configs/example/se.py @@ -160,6 +160,7 @@ np = options.num_cpus system = System(cpu = [CPUClass(cpu_id=i) for i in xrange(np)], physmem = MemClass(range=AddrRange("512MB")), mem_mode = test_mem_mode) +system.clock = options.sys_clock # Sanity check if options.fastmem: |