changeset 2daeea4bce1b in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=2daeea4bce1b
description:
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:
configs/example/fs.py | 7 +++++--
configs/example/se.py | 7 +++++--
2 files changed, 10 insertions(+), 4 deletions(-)
diffs (34 lines):
diff -r 4e2dc4b01c50 -r 2daeea4bce1b configs/example/fs.py
--- a/configs/example/fs.py Fri Oct 26 06:42:43 2012 -0400
+++ b/configs/example/fs.py Fri Oct 26 06:42:45 2012 -0400
@@ -128,8 +128,11 @@
test_sys.iobridge.master = test_sys.membus.slave
# Sanity check
-if options.fastmem and (options.caches or options.l2cache):
- fatal("You cannot use fastmem in combination with caches!")
+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):
if options.fastmem:
diff -r 4e2dc4b01c50 -r 2daeea4bce1b configs/example/se.py
--- a/configs/example/se.py Fri Oct 26 06:42:43 2012 -0400
+++ b/configs/example/se.py Fri Oct 26 06:42:45 2012 -0400
@@ -160,8 +160,11 @@
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:
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev