summaryrefslogtreecommitdiff
path: root/src/sim/Process.py
diff options
context:
space:
mode:
authorBrandon Potter <brandon.potter@amd.com>2017-02-27 14:10:02 -0500
committerBrandon Potter <brandon.potter@amd.com>2017-02-27 14:10:02 -0500
commit073cb266079edddec64ea8cd5169dd2cbef8f812 (patch)
tree63de367b090c3aae3e4c3ea5b43949c899c8e811 /src/sim/Process.py
parentf5656738dc3ded25ba8a269efff70e8f12fc22ee (diff)
downloadgem5-073cb266079edddec64ea8cd5169dd2cbef8f812.tar.xz
syscall_emul: [patch 14/22] adds identifier system calls
This changeset add fields to the process object and adds the following three system calls: setpgid, gettid, getpid.
Diffstat (limited to 'src/sim/Process.py')
-rw-r--r--src/sim/Process.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sim/Process.py b/src/sim/Process.py
index 2d7c7d22c..9c4ee4760 100644
--- a/src/sim/Process.py
+++ b/src/sim/Process.py
@@ -47,7 +47,8 @@ class Process(SimObject):
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')
+ ppid = Param.Int(0, 'parent process id')
+ pgid = Param.Int(100, 'process group id')
executable = Param.String('', "executable (overrides cmd[0] if set)")
cmd = VectorParam.String("command line (executable plus arguments)")