sim-se: add syscalls related to polling
authorBrandon Potter <brandon.potter@amd.com>
Wed, 18 Apr 2018 18:57:57 +0000 (14:57 -0400)
committerAnthony Gutierrez <anthony.gutierrez@amd.com>
Tue, 22 Jan 2019 02:05:48 +0000 (02:05 +0000)
commitbc74c58eaf55005a6a4b2e67657da4121554943c
tree92b04de877f151c7d5c562a117d695fdf913dc37
parentc4e67f68377d9b3e909c76412b6ed2fde6a50e01
sim-se: add syscalls related to polling

Fix poll so that it will use the syscall retry capability
instead of causing a blocking call.

Add the accept and wait4 system calls.

Add polling to read to remove deadlocks that occur in the
event queue that are caused by blocking system calls.

Modify the write system call to return an error number in
case of error.

Change-Id: I0b4091a2e41e4187ebf69d63e0088f988f37d5da
Reviewed-on: https://gem5-review.googlesource.com/c/12115
Reviewed-by: Anthony Gutierrez <anthony.gutierrez@amd.com>
Maintainer: Anthony Gutierrez <anthony.gutierrez@amd.com>
13 files changed:
src/arch/alpha/linux/process.cc
src/arch/arm/freebsd/process.cc
src/arch/arm/linux/process.cc
src/arch/mips/linux/process.cc
src/arch/power/linux/process.cc
src/arch/riscv/linux/process.cc
src/arch/sparc/linux/syscalls.cc
src/arch/sparc/solaris/process.cc
src/arch/x86/linux/process.cc
src/kern/linux/linux.hh
src/sim/fd_entry.hh
src/sim/syscall_emul.cc
src/sim/syscall_emul.hh