config: Add a system clock command-line option
[gem5.git] / tests / configs / simple-timing-ruby.py
index 19e827c806084a5176db0e7de44a7f66f33aeb2f..9057475a5e905ad7aa2c724b6f662e0b6c1b46e6 100644 (file)
@@ -37,6 +37,7 @@ config_path = os.path.dirname(os.path.abspath(__file__))
 config_root = os.path.dirname(config_path)
 addToPath(config_root+'/configs/common')
 addToPath(config_root+'/configs/ruby')
+addToPath(config_root+'/configs/topologies')
 
 import Ruby
 import Options
@@ -66,7 +67,8 @@ options.l3_assoc=2
 options.num_cpus = 1
 
 cpu = TimingSimpleCPU(cpu_id=0)
-system = System(cpu = cpu, physmem = PhysicalMemory())
+system = System(cpu = cpu, physmem = SimpleMemory(null = True))
+system.clock = options.sys_clock
 
 Ruby.create_system(options, system)