se.py (9836:4411b4e0c03a) se.py (9907:8bddb3879c16)
1# Copyright (c) 2012-2013 ARM Limited
2# All rights reserved.
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license

--- 30 unchanged lines hidden (view full) ---

39# Authors: Steve Reinhardt
40
41# Simple test script
42#
43# "m5 test.py"
44
45import optparse
46import sys
1# Copyright (c) 2012-2013 ARM Limited
2# All rights reserved.
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license

--- 30 unchanged lines hidden (view full) ---

39# Authors: Steve Reinhardt
40
41# Simple test script
42#
43# "m5 test.py"
44
45import optparse
46import sys
47import os
47
48import m5
49from m5.defines import buildEnv
50from m5.objects import *
51from m5.util import addToPath, fatal
52
53addToPath('../common')
54addToPath('../ruby')

--- 25 unchanged lines hidden (view full) ---

80 errouts = options.errout.split(';')
81 if options.options != "":
82 pargs = options.options.split(';')
83
84 idx = 0
85 for wrkld in workloads:
86 process = LiveProcess()
87 process.executable = wrkld
48
49import m5
50from m5.defines import buildEnv
51from m5.objects import *
52from m5.util import addToPath, fatal
53
54addToPath('../common')
55addToPath('../ruby')

--- 25 unchanged lines hidden (view full) ---

81 errouts = options.errout.split(';')
82 if options.options != "":
83 pargs = options.options.split(';')
84
85 idx = 0
86 for wrkld in workloads:
87 process = LiveProcess()
88 process.executable = wrkld
89 process.cwd = os.getcwd()
88
89 if len(pargs) > idx:
90 process.cmd = [wrkld] + pargs[idx].split()
91 else:
92 process.cmd = [wrkld]
93
94 if len(inputs) > idx:
95 process.input = inputs[idx]

--- 161 unchanged lines hidden ---
90
91 if len(pargs) > idx:
92 process.cmd = [wrkld] + pargs[idx].split()
93 else:
94 process.cmd = [wrkld]
95
96 if len(inputs) > idx:
97 process.input = inputs[idx]

--- 161 unchanged lines hidden ---