Process.py revision 3102
1from m5.SimObject import SimObject 2from m5.params import * 3from m5.proxy import * 4class Process(SimObject): 5 type = 'Process' 6 abstract = True 7 output = Param.String('cout', 'filename for stdout/stderr') 8 system = Param.System(Parent.any, "system process will run on") 9 10class LiveProcess(Process): 11 type = 'LiveProcess' 12 executable = Param.String('', "executable (overrides cmd[0] if set)") 13 cmd = VectorParam.String("command line (executable plus arguments)") 14 env = VectorParam.String('', "environment settings") 15 input = Param.String('cin', "filename for stdin") 16 17class AlphaLiveProcess(LiveProcess): 18 type = 'AlphaLiveProcess' 19 20class SparcLiveProcess(LiveProcess): 21 type = 'SparcLiveProcess' 22 23class MipsLiveProcess(LiveProcess): 24 type = 'MipsLiveProcess' 25 26class EioProcess(Process): 27 type = 'EioProcess' 28 chkpt = Param.String('', "EIO checkpoint file name (optional)") 29 file = Param.String("EIO trace file name") 30