summaryrefslogtreecommitdiff
path: root/src/sim
diff options
context:
space:
mode:
Diffstat (limited to 'src/sim')
-rw-r--r--src/sim/Process.py1
-rw-r--r--src/sim/process.cc1
-rw-r--r--src/sim/process.hh3
3 files changed, 5 insertions, 0 deletions
diff --git a/src/sim/Process.py b/src/sim/Process.py
index 73a0145fd..6714ee560 100644
--- a/src/sim/Process.py
+++ b/src/sim/Process.py
@@ -62,6 +62,7 @@ class Process(SimObject):
cwd = Param.String(getcwd(), "current working directory")
simpoint = Param.UInt64(0, 'simulation point at which to start simulation')
drivers = VectorParam.EmulatedDriver([], 'Available emulated drivers')
+ release = Param.String('5.1.0', "Linux kernel uname release")
@classmethod
def export_methods(cls, code):
diff --git a/src/sim/process.cc b/src/sim/process.cc
index 90d0e5d55..f647467b8 100644
--- a/src/sim/process.cc
+++ b/src/sim/process.cc
@@ -97,6 +97,7 @@ Process::Process(ProcessParams *params, EmulationPageTable *pTable,
executable(params->executable),
tgtCwd(normalize(params->cwd)),
hostCwd(checkPathRedirect(tgtCwd)),
+ release(params->release),
_uid(params->uid), _euid(params->euid),
_gid(params->gid), _egid(params->egid),
_pid(params->pid), _ppid(params->ppid),
diff --git a/src/sim/process.hh b/src/sim/process.hh
index 27c569602..23ed6d661 100644
--- a/src/sim/process.hh
+++ b/src/sim/process.hh
@@ -224,6 +224,9 @@ class Process : public SimObject
std::string tgtCwd;
std::string hostCwd;
+ // Syscall emulation uname release.
+ std::string release;
+
// Id of the owner of the process
uint64_t _uid;
uint64_t _euid;