syscall-emul: Add or extend dup, dup2, and pipe
authorBrandon Potter <Brandon.Potter@amd.com>
Wed, 1 Mar 2017 19:35:02 +0000 (13:35 -0600)
committerBrandon Potter <Brandon.Potter@amd.com>
Thu, 9 Mar 2017 22:42:45 +0000 (22:42 +0000)
commit198c515b970604df600c2b84ddfc51fa24ed9754
tree93d8ea360017d53a2b192f8822f454f80e2ec9c4
parentacce7b0dc0edf85b99c75d1800df99bd9e288b01
syscall-emul: Add or extend dup, dup2, and pipe

This changeset extends the pipe system call to work with
architectures other than Alpha (and enables the syscall for
x86). For the dup system call, it sets the clone-on-exec
flag by default. For the dup2 system call, the changeset
adds an implementation (and enables it for x86).

Change-Id: I00ddb416744ee7dd61a5cd02c4c3d97f30543878
Reviewed-on: https://gem5-review.googlesource.com/2266
Maintainer: Jason Lowe-Power <jason@lowepower.com>
Reviewed-by: Tony Gutierrez <anthony.gutierrez@amd.com>
Reviewed-by: Michael LeBeane <Michael.Lebeane@amd.com>
src/arch/x86/linux/process.cc
src/sim/syscall_emul.cc
src/sim/syscall_emul.hh