summaryrefslogtreecommitdiff
path: root/src/sim/Process.py
diff options
context:
space:
mode:
authorBrandon Potter <brandon.potter@amd.com>2016-11-09 14:27:40 -0600
committerBrandon Potter <brandon.potter@amd.com>2016-11-09 14:27:40 -0600
commite3875215270220e5142a93848f74ccde9d61b244 (patch)
treeb0b6c47320a35d3b7661f54932229611b4a06150 /src/sim/Process.py
parenta928a438b8a005e5b6059bc5db0687bf64abcfa6 (diff)
downloadgem5-e3875215270220e5142a93848f74ccde9d61b244.tar.xz
syscall_emul: [patch 4/22] remove redundant M5_pid field from process
Diffstat (limited to 'src/sim/Process.py')
-rw-r--r--src/sim/Process.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/sim/Process.py b/src/sim/Process.py
index ca9aaf5b1..fb1450107 100644
--- a/src/sim/Process.py
+++ b/src/sim/Process.py
@@ -43,6 +43,13 @@ class Process(SimObject):
kvmInSE = Param.Bool('false', 'initialize the process for KvmCPU in SE')
max_stack_size = Param.MemorySize('64MB', 'maximum size of the stack')
+ uid = Param.Int(100, 'user id')
+ euid = Param.Int(100, 'effective user id')
+ gid = Param.Int(100, 'group id')
+ egid = Param.Int(100, 'effective group id')
+ pid = Param.Int(100, 'process id')
+ ppid = Param.Int(99, 'parent process id')
+
@classmethod
def export_methods(cls, code):
code('bool map(Addr vaddr, Addr paddr, int size, bool cacheable=true);')
@@ -60,12 +67,6 @@ class LiveProcess(Process):
cmd = VectorParam.String("command line (executable plus arguments)")
env = VectorParam.String([], "environment settings")
cwd = Param.String('', "current working directory")
- uid = Param.Int(100, 'user id')
- euid = Param.Int(100, 'effective user id')
- gid = Param.Int(100, 'group id')
- egid = Param.Int(100, 'effective group id')
- pid = Param.Int(100, 'process id')
- ppid = Param.Int(99, 'parent process id')
simpoint = Param.UInt64(0, 'simulation point at which to start simulation')
drivers = VectorParam.EmulatedDriver([], 'Available emulated drivers')