Pau Cabre has uploaded this change for review. ( https://gem5-review.googlesource.com/4160

Change subject: configs,sim-se: fix se.py multi-cpu multi-cmd issue
......................................................................

configs,sim-se: fix se.py multi-cpu multi-cmd issue

Assign different pids to the different commands specified with the "--cmd"
flag to configs/example/se.py

Without this change, the following command line triggers
a "fatal: _pid 100 is already used" error:

command=$PWD/tests/test-progs/hello/bin/arm/linux/hello
./build/ARM/gem5.opt configs/example/se.py -n 2 -c "$command;$command"

Change-Id: If6f726481eb196d4f42680b6aa46364fce4190ed
Signed-off-by: Pau Cabre <pau.ca...@metempsy.com>
---
M configs/example/se.py
1 file changed, 1 insertion(+), 1 deletion(-)



diff --git a/configs/example/se.py b/configs/example/se.py
index 0fc7d74..7a19e5a 100644
--- a/configs/example/se.py
+++ b/configs/example/se.py
@@ -91,7 +91,7 @@

     idx = 0
     for wrkld in workloads:
-        process = Process()
+        process = Process(pid = 100 + idx)
         process.executable = wrkld
         process.cwd = os.getcwd()


--
To view, visit https://gem5-review.googlesource.com/4160
To unsubscribe, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: If6f726481eb196d4f42680b6aa46364fce4190ed
Gerrit-Change-Number: 4160
Gerrit-PatchSet: 1
Gerrit-Owner: Pau Cabre <pau.ca...@metempsy.com>
_______________________________________________
gem5-dev mailing list
gem5-dev@gem5.org
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to