summaryrefslogtreecommitdiff
path: root/src/sim/system.hh
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/system.hh
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/system.hh')
-rw-r--r--src/sim/system.hh5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sim/system.hh b/src/sim/system.hh
index c3667fe09..3954b35c2 100644
--- a/src/sim/system.hh
+++ b/src/sim/system.hh
@@ -551,6 +551,11 @@ class System : public MemObject
// For futex system call
std::map<uint64_t, std::list<ThreadContext *> * > futexMap;
+ static const int maxPID = 32768;
+
+ /** Process set to track which PIDs have already been allocated */
+ std::set<int> PIDs;
+
protected:
/**