config: Add a check for fastmem only used with Atomic CPU
This patch adds an additional check to ensure that the fastmem option is only used if the system is using the Atomic CPU.
This commit is contained in:
parent
7cd01cf769
commit
a4d8996fd9
2 changed files with 10 additions and 4 deletions
|
@ -128,7 +128,10 @@ else:
|
|||
test_sys.iobridge.master = test_sys.membus.slave
|
||||
|
||||
# Sanity check
|
||||
if options.fastmem and (options.caches or options.l2cache):
|
||||
if options.fastmem:
|
||||
if TestCPUClass != AtomicSimpleCPU:
|
||||
fatal("Fastmem can only be used with atomic CPU!")
|
||||
if (options.caches or options.l2cache):
|
||||
fatal("You cannot use fastmem in combination with caches!")
|
||||
|
||||
for i in xrange(np):
|
||||
|
|
|
@ -160,7 +160,10 @@ system = System(cpu = [CPUClass(cpu_id=i) for i in xrange(np)],
|
|||
membus = CoherentBus(), mem_mode = test_mem_mode)
|
||||
|
||||
# Sanity check
|
||||
if options.fastmem and (options.caches or options.l2cache):
|
||||
if options.fastmem:
|
||||
if CPUClass != AtomicSimpleCPU:
|
||||
fatal("Fastmem can only be used with atomic CPU!")
|
||||
if (options.caches or options.l2cache):
|
||||
fatal("You cannot use fastmem in combination with caches!")
|
||||
|
||||
for i in xrange(np):
|
||||
|
|
Loading…
Reference in a new issue