diff options
author | Brandon Potter <Brandon.Potter@amd.com> | 2017-03-01 14:29:00 -0600 |
---|---|---|
committer | Brandon Potter <Brandon.Potter@amd.com> | 2017-03-09 22:42:45 +0000 |
commit | 8b85f950e5a4f0f7ebf66f142356d8dcea7c9bcc (patch) | |
tree | 6c425c8e50ac1f40a9a8da619624f5c180de944e /src/sim/system.hh | |
parent | 198c515b970604df600c2b84ddfc51fa24ed9754 (diff) | |
download | gem5-8b85f950e5a4f0f7ebf66f142356d8dcea7c9bcc.tar.xz |
syscall-emul: Adds SE mode signal feature
This changeset adds a simple class definition and a member
in the System object to track signals sent between processes.
The implementation cannot support all signals that might be
sent between processes, but it can support some of the simple
use cases like SIGCHLD.
Change-Id: Id5f95aa60e7f49da1c5b5596fbfa26e729453ac7
Reviewed-on: https://gem5-review.googlesource.com/2267
Reviewed-by: Michael LeBeane <Michael.Lebeane@amd.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
Diffstat (limited to 'src/sim/system.hh')
-rw-r--r-- | src/sim/system.hh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sim/system.hh b/src/sim/system.hh index 3954b35c2..7584cebc9 100644 --- a/src/sim/system.hh +++ b/src/sim/system.hh @@ -61,6 +61,7 @@ #include "mem/port_proxy.hh" #include "mem/physical.hh" #include "params/System.hh" +#include "sim/se_signal.hh" /** * To avoid linking errors with LTO, only include the header if we @@ -556,6 +557,10 @@ class System : public MemObject /** Process set to track which PIDs have already been allocated */ std::set<int> PIDs; + // By convention, all signals are owned by the receiving process. The + // receiver will delete the signal upon reception. + std::list<BasicSignal> signalList; + protected: /** |