config: Fix mem-type option not used in ruby_fs script
authorMarco Elver <marco.elver@ed.ac.uk>
Tue, 23 Apr 2013 16:56:48 +0000 (11:56 -0500)
committerMarco Elver <marco.elver@ed.ac.uk>
Tue, 23 Apr 2013 16:56:48 +0000 (11:56 -0500)
This fixes missing mem-type arguments to makeLinuxAlphaRubySystem and
makeLinuxX86System after a recent changeset allowing mem-type to be
configured via options missed fixing these calls.

Committed by: Nilay Vaish <nilay@cs.wisc.edu>

configs/example/ruby_fs.py

index 32ddb90bfc488e3b34603124523be478a49829b8..e04e14434b107c0162c076b4ce49c1000864bcb9 100644 (file)
@@ -82,10 +82,13 @@ if not (options.cpu_type == "detailed" or options.cpu_type == "timing"):
 
 CPUClass.clock = options.clock
 
+TestMemClass = Simulation.setMemClass(options)
+
 if buildEnv['TARGET_ISA'] == "alpha":
-    system = makeLinuxAlphaRubySystem(test_mem_mode, bm[0])
+    system = makeLinuxAlphaRubySystem(test_mem_mode, TestMemClass, bm[0])
 elif buildEnv['TARGET_ISA'] == "x86":
-    system = makeLinuxX86System(test_mem_mode, options.num_cpus, bm[0], True)
+    system = makeLinuxX86System(test_mem_mode, TestMemClass,
+                                options.num_cpus, bm[0], True)
     Simulation.setWorkCountOptions(system, options)
 else:
     fatal("incapable of building non-alpha or non-x86 full system!")