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. --- tests/configs/simple-atomic-mp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/configs/simple-atomic-mp.py') diff --git a/tests/configs/simple-atomic-mp.py b/tests/configs/simple-atomic-mp.py index 0324bcc04..d43371eb5 100644 --- a/tests/configs/simple-atomic-mp.py +++ b/tests/configs/simple-atomic-mp.py @@ -38,7 +38,7 @@ cpus = [ AtomicSimpleCPU(cpu_id=i) for i in xrange(nb_cores) ] system = System(cpu = cpus, physmem = SimpleMemory(range = AddrRange('1024MB')), membus = CoherentBus()) - +system.clock = '1GHz' # l2cache & bus system.toL2Bus = CoherentBus(clock = '2GHz') system.l2c = L2Cache(clock = '2GHz', size='4MB', assoc=8) -- cgit v1.2.3