config: set cwd for processes in se.py
authorNilay Vaish <nilay@cs.wisc.edu>
Mon, 7 Oct 2013 23:05:50 +0000 (18:05 -0500)
committerNilay Vaish <nilay@cs.wisc.edu>
Mon, 7 Oct 2013 23:05:50 +0000 (18:05 -0500)
configs/example/se.py

index 02a0d3b9631357d26bd6663f71df5f9ddfcc5e39..f7e7f1a6583518ad1b8cec78b3a1dd1801227d22 100644 (file)
@@ -44,6 +44,7 @@
 
 import optparse
 import sys
+import os
 
 import m5
 from m5.defines import buildEnv
@@ -85,6 +86,7 @@ def get_processes(options):
     for wrkld in workloads:
         process = LiveProcess()
         process.executable = wrkld
+        process.cwd = os.getcwd()
 
         if len(pargs) > idx:
             process.cmd = [wrkld] + pargs[idx].split()