diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2007-10-16 18:04:01 -0700 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2007-10-16 18:04:01 -0700 |
commit | 54466a31c3c295f11d5936d34a1b2ac0d3e0045f (patch) | |
tree | 9214dd0f304c8376ff6c81b080589f994916d439 /src/sim/Process.py | |
parent | 9660a0a5524a65094a43b557edf6a6cf0d11222d (diff) | |
download | gem5-54466a31c3c295f11d5936d34a1b2ac0d3e0045f.tar.xz |
Make the process objects use the Params structs in their constructors, and use a limit to check if access are on the stack.
--HG--
extra : convert_revision : af40a7acf424c4c4f62d0d76db1001a714ae0474
Diffstat (limited to 'src/sim/Process.py')
-rw-r--r-- | src/sim/Process.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sim/Process.py b/src/sim/Process.py index 34ff6c394..07ed2c692 100644 --- a/src/sim/Process.py +++ b/src/sim/Process.py @@ -33,8 +33,10 @@ from m5.proxy import * class Process(SimObject): type = 'Process' abstract = True + input = Param.String('cin', "filename for stdin") output = Param.String('cout', 'filename for stdout/stderr') system = Param.System(Parent.any, "system process will run on") + max_stack_size = Param.MemorySize('64MB', 'maximum size of the stack') class LiveProcess(Process): type = 'LiveProcess' @@ -42,7 +44,6 @@ class LiveProcess(Process): cmd = VectorParam.String("command line (executable plus arguments)") env = VectorParam.String([], "environment settings") cwd = Param.String('', "current working directory") - input = Param.String('cin', "filename for stdin") uid = Param.Int(100, 'user id') euid = Param.Int(100, 'effective user id') gid = Param.Int(100, 'group id') |