summaryrefslogtreecommitdiff
path: root/configs/example/se.py
diff options
context:
space:
mode:
authorAndreas Hansson <andreas.hansson@arm.com>2012-10-26 06:42:45 -0400
committerAndreas Hansson <andreas.hansson@arm.com>2012-10-26 06:42:45 -0400
commita4d8996fd9224212ab042fd15316ba451201a11f (patch)
tree637944ac8b46e24e69262b14e375ff114c0e74cb /configs/example/se.py
parent7cd01cf769fbdeec7f5e90b9b8147beb7201ddfe (diff)
downloadgem5-a4d8996fd9224212ab042fd15316ba451201a11f.tar.xz
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.
Diffstat (limited to 'configs/example/se.py')
-rw-r--r--configs/example/se.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/configs/example/se.py b/configs/example/se.py
index adebab1e2..c4c6daedf 100644
--- a/configs/example/se.py
+++ b/configs/example/se.py
@@ -160,8 +160,11 @@ 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):
- fatal("You cannot use fastmem in combination with caches!")
+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):
if options.smt: