Process.py (9110:09dcdb40b109) | Process.py (9338:97b4a2be1e5b) |
---|---|
1# Copyright (c) 2005-2008 The Regents of The University of Michigan 2# All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions are 6# met: redistributions of source code must retain the above copyright 7# notice, this list of conditions and the following disclaimer; 8# redistributions in binary form must reproduce the above copyright --- 19 unchanged lines hidden (view full) --- 28 29from m5.SimObject import SimObject 30from m5.params import * 31from m5.proxy import * 32 33class Process(SimObject): 34 type = 'Process' 35 abstract = True | 1# Copyright (c) 2005-2008 The Regents of The University of Michigan 2# All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions are 6# met: redistributions of source code must retain the above copyright 7# notice, this list of conditions and the following disclaimer; 8# redistributions in binary form must reproduce the above copyright --- 19 unchanged lines hidden (view full) --- 28 29from m5.SimObject import SimObject 30from m5.params import * 31from m5.proxy import * 32 33class Process(SimObject): 34 type = 'Process' 35 abstract = True |
36 cxx_header = "sim/process.hh" |
|
36 input = Param.String('cin', "filename for stdin") 37 output = Param.String('cout', 'filename for stdout') 38 errout = Param.String('cerr', 'filename for stderr') 39 system = Param.System(Parent.any, "system process will run on") 40 max_stack_size = Param.MemorySize('64MB', 'maximum size of the stack') 41 42 @classmethod | 37 input = Param.String('cin', "filename for stdin") 38 output = Param.String('cout', 'filename for stdout') 39 errout = Param.String('cerr', 'filename for stderr') 40 system = Param.System(Parent.any, "system process will run on") 41 max_stack_size = Param.MemorySize('64MB', 'maximum size of the stack') 42 43 @classmethod |
43 def export_method_cxx_predecls(cls, code): 44 code('#include "sim/process.hh"') 45 46 @classmethod | |
47 def export_methods(cls, code): 48 code('bool map(Addr vaddr, Addr paddr, int size);') 49 50class LiveProcess(Process): 51 type = 'LiveProcess' | 44 def export_methods(cls, code): 45 code('bool map(Addr vaddr, Addr paddr, int size);') 46 47class LiveProcess(Process): 48 type = 'LiveProcess' |
49 cxx_header = "sim/process.hh" |
|
52 executable = Param.String('', "executable (overrides cmd[0] if set)") 53 cmd = VectorParam.String("command line (executable plus arguments)") 54 env = VectorParam.String([], "environment settings") 55 cwd = Param.String('', "current working directory") 56 uid = Param.Int(100, 'user id') 57 euid = Param.Int(100, 'effective user id') 58 gid = Param.Int(100, 'group id') 59 egid = Param.Int(100, 'effective group id') 60 pid = Param.Int(100, 'process id') 61 ppid = Param.Int(99, 'parent process id') 62 simpoint = Param.UInt64(0, 'simulation point at which to start simulation') | 50 executable = Param.String('', "executable (overrides cmd[0] if set)") 51 cmd = VectorParam.String("command line (executable plus arguments)") 52 env = VectorParam.String([], "environment settings") 53 cwd = Param.String('', "current working directory") 54 uid = Param.Int(100, 'user id') 55 euid = Param.Int(100, 'effective user id') 56 gid = Param.Int(100, 'group id') 57 egid = Param.Int(100, 'effective group id') 58 pid = Param.Int(100, 'process id') 59 ppid = Param.Int(99, 'parent process id') 60 simpoint = Param.UInt64(0, 'simulation point at which to start simulation') |