diff options
Diffstat (limited to 'configs/example/se.py')
-rw-r--r-- | configs/example/se.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/configs/example/se.py b/configs/example/se.py index a6cf1ec19..a2f8a09dc 100644 --- a/configs/example/se.py +++ b/configs/example/se.py @@ -155,11 +155,15 @@ system = System(cpu = [CPUClass(cpu_id=i) for i in xrange(np)], physmem = PhysicalMemory(range=AddrRange("512MB")), membus = Bus(), mem_mode = test_mem_mode) +# Sanity check +if options.fastmem and (options.caches or options.l2cache): + fatal("You cannot use fastmem in combination with caches!") + for i in xrange(np): system.cpu[i].workload = multiprocesses[i] if options.fastmem: - system.cpu[0].physmem_port = system.physmem.port + system.cpu[0].fastmem = True if options.checker: system.cpu[i].addCheckerCpu() |