summaryrefslogtreecommitdiff
path: root/configs/example
diff options
context:
space:
mode:
authorbpotter <brandon.potter@amd.com>2015-04-23 13:40:18 -0700
committerbpotter <brandon.potter@amd.com>2015-04-23 13:40:18 -0700
commit936768c8f4b266e5cc5317def6f34306def29c56 (patch)
tree8759683bfff774cf0177868153520cbb7a11f0bd /configs/example
parent483f873d0138a668f160ba06510600084cdc8473 (diff)
downloadgem5-936768c8f4b266e5cc5317def6f34306def29c56.tar.xz
config: enable setting SE-mode environment variables from file
Diffstat (limited to 'configs/example')
-rw-r--r--configs/example/se.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/configs/example/se.py b/configs/example/se.py
index a582d2976..5357ed7a2 100644
--- a/configs/example/se.py
+++ b/configs/example/se.py
@@ -94,6 +94,10 @@ def get_processes(options):
process.executable = wrkld
process.cwd = os.getcwd()
+ if options.env:
+ with open(options.env, 'r') as f:
+ process.env = [line.rstrip() for line in f]
+
if len(pargs) > idx:
process.cmd = [wrkld] + pargs[idx].split()
else: