diff options
author | Lisa Hsu <hsul@eecs.umich.edu> | 2006-11-01 19:25:20 -0500 |
---|---|---|
committer | Lisa Hsu <hsul@eecs.umich.edu> | 2006-11-01 19:25:20 -0500 |
commit | 683d8f0831b476a906dc2720265a2334ba0117e3 (patch) | |
tree | a7722abe524d8fadfcd33de94ecf04173752cbd0 /configs/example/fs.py | |
parent | b565660c42cbf8f9ec9442cd6c0b7d488c7816af (diff) | |
parent | 74ff45d353fadb8dd70f4fd9135ab66ce71e6718 (diff) | |
download | gem5-683d8f0831b476a906dc2720265a2334ba0117e3.tar.xz |
Merge zizzer:/bk/newmem
into zed.eecs.umich.edu:/z/hsul/work/m5/newmem
--HG--
extra : convert_revision : a30e2da1f0a272b8c867c0e7a3491118be92bc5e
Diffstat (limited to 'configs/example/fs.py')
-rw-r--r-- | configs/example/fs.py | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/configs/example/fs.py b/configs/example/fs.py index 67c3912ef..180cd2719 100644 --- a/configs/example/fs.py +++ b/configs/example/fs.py @@ -72,16 +72,8 @@ if args: DriveCPUClass = AtomicSimpleCPU drive_mem_mode = 'atomic' -# system under test can be any of these CPUs -if options.detailed: - TestCPUClass = DerivO3CPU - test_mem_mode = 'timing' -elif options.timing: - TestCPUClass = TimingSimpleCPU - test_mem_mode = 'timing' -else: - TestCPUClass = AtomicSimpleCPU - test_mem_mode = 'atomic' +# system under test can be any CPU +(TestCPUClass, test_mem_mode, FutureClass) = Simulation.setCPUClass(options) TestCPUClass.clock = '2GHz' DriveCPUClass.clock = '2GHz' @@ -103,7 +95,7 @@ test_sys = makeLinuxAlphaSystem(test_mem_mode, bm[0]) np = options.num_cpus test_sys.cpu = [TestCPUClass(cpu_id=i) for i in xrange(np)] for i in xrange(np): - if options.caches and not options.standard_switch: + if options.caches and not options.standard_switch and not FutureClass: test_sys.cpu[i].addPrivateSplitL1Caches(L1Cache(size = '32kB'), L1Cache(size = '64kB')) test_sys.cpu[i].connectMemPorts(test_sys.membus) @@ -119,4 +111,4 @@ else: print "Error I don't know how to create more than 2 systems." sys.exit(1) -Simulation.run(options, root, test_sys) +Simulation.run(options, root, test_sys, FutureClass) |