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>
This commit is contained in:
committed by
Anthony Gutierrez
parent
c4e67f6837
commit
bc74c58eaf
@@ -128,8 +128,8 @@ SyscallDesc AlphaLinuxProcess::syscallDescs[] = {
|
||||
/* 0 */ SyscallDesc("osf_syscall", unimplementedFunc),
|
||||
/* 1 */ SyscallDesc("exit", exitFunc),
|
||||
/* 2 */ SyscallDesc("fork", unimplementedFunc),
|
||||
/* 3 */ SyscallDesc("read", readFunc),
|
||||
/* 4 */ SyscallDesc("write", writeFunc),
|
||||
/* 3 */ SyscallDesc("read", readFunc<AlphaLinux>),
|
||||
/* 4 */ SyscallDesc("write", writeFunc<AlphaLinux>),
|
||||
/* 5 */ SyscallDesc("osf_old_open", unimplementedFunc),
|
||||
/* 6 */ SyscallDesc("close", closeFunc),
|
||||
/* 7 */ SyscallDesc("osf_wait4", unimplementedFunc),
|
||||
|
||||
Reference in New Issue
Block a user