configs: Use param to get number of processors
authorPo-Hao Su <supohaosu@gmail.com>
Mon, 22 Apr 2019 08:23:18 +0000 (16:23 +0800)
committerPo-Hao Su <supohaosu@gmail.com>
Mon, 22 Apr 2019 18:10:08 +0000 (18:10 +0000)
Although the parameter np is the same as options.num_cpus. But we should
get the number of processors from the parameters of the function.

Change-Id: I3eb02d7c75ab35410b773b06001d1b145cdccd49
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/18248
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
Tested-by: kokoro <noreply+kokoro@google.com>
configs/example/fs.py

index 9c5ef179885eb22dcc5b2b66286935f3ddeef5ba..bf6ae45dd23ed816e612f4d0bba7bd8911e50177 100644 (file)
@@ -89,11 +89,11 @@ def build_test_system(np):
     elif buildEnv['TARGET_ISA'] == "sparc":
         test_sys = makeSparcSystem(test_mem_mode, bm[0], cmdline=cmdline)
     elif buildEnv['TARGET_ISA'] == "x86":
-        test_sys = makeLinuxX86System(test_mem_mode, options.num_cpus, bm[0],
-                options.ruby, cmdline=cmdline)
+        test_sys = makeLinuxX86System(test_mem_mode, np, bm[0], options.ruby,
+                                      cmdline=cmdline)
     elif buildEnv['TARGET_ISA'] == "arm":
-        test_sys = makeArmSystem(test_mem_mode, options.machine_type,
-                                 options.num_cpus, bm[0], options.dtb_filename,
+        test_sys = makeArmSystem(test_mem_mode, options.machine_type, np,
+                                 bm[0], options.dtb_filename,
                                  bare_metal=options.bare_metal,
                                  cmdline=cmdline,
                                  external_memory=