diff options
Diffstat (limited to 'tests/configs')
-rw-r--r-- | tests/configs/pc-simple-timing-ruby.py | 7 | ||||
-rw-r--r-- | tests/configs/t1000-simple-atomic.py | 4 |
2 files changed, 8 insertions, 3 deletions
diff --git a/tests/configs/pc-simple-timing-ruby.py b/tests/configs/pc-simple-timing-ruby.py index 5799c0c7a..e0ef72db9 100644 --- a/tests/configs/pc-simple-timing-ruby.py +++ b/tests/configs/pc-simple-timing-ruby.py @@ -56,10 +56,13 @@ options.num_cpus = 2 #the system mdesc = SysConfig(disk = 'linux-x86.img') system = FSConfig.makeLinuxX86System('timing', DDR3_1600_x64, options.num_cpus, - mdesc=mdesc, Ruby=True, + mdesc=mdesc, Ruby=True) system.kernel = FSConfig.binary('x86_64-vmlinux-2.6.22.9.smp') -system.cpu = [TimingSimpleCPU(cpu_id=i) for i in xrange(options.num_cpus)] +system.clk_domain = SrcClockDomain(clock = '1GHz') +system.cpu_clk_domain = SrcClockDomain(clock = '2GHz') +system.cpu = [TimingSimpleCPU(cpu_id=i, clk_domain = system.cpu_clk_domain) + for i in xrange(options.num_cpus)] Ruby.create_system(options, system, system.piobus, system._dma_ports) diff --git a/tests/configs/t1000-simple-atomic.py b/tests/configs/t1000-simple-atomic.py index 7f04751b8..c0744a6a2 100644 --- a/tests/configs/t1000-simple-atomic.py +++ b/tests/configs/t1000-simple-atomic.py @@ -31,8 +31,10 @@ from m5.objects import * m5.util.addToPath('../configs/common') import FSConfig -cpu = AtomicSimpleCPU(cpu_id=0) system = FSConfig.makeSparcSystem('atomic', SimpleMemory) +system.clk_domain = SrcClockDomain(clock = '1GHz') +system.cpu_clk_domain = SrcClockDomain(clock = '1GHz') +cpu = AtomicSimpleCPU(cpu_id=0, clk_domain = system.cpu_clk_domain) system.cpu = cpu # create the interrupt controller cpu.createInterruptController() |