arch-x86: Ignore certain syscalls called in ROCm 4
fdatasync, sigaltstack, and prctl are called by the ROCm 4 stack, but were unimplemented. Based on testing, we can change these to ignoreFunc without affecting program correctness. sched_yield gets changed to ignoreWarnOnceFunc, as it gets called significantly more in ROCm 4. Change-Id: I566b1d71d989c54bfc559d5b83790dff73a38b28 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/46241 Tested-by: kokoro <noreply+kokoro@google.com> Maintainer: Matt Sinclair <mattdsinclair@gmail.com> Reviewed-by: Matt Sinclair <mattdsinclair@gmail.com> Reviewed-by: Matthew Poremba <matthew.poremba@amd.com>
This commit is contained in:
@@ -60,7 +60,7 @@ SyscallDescTable<EmuLinux::SyscallABI64> EmuLinux::syscallDescs64 = {
|
||||
{ 21, "access", ignoreFunc },
|
||||
{ 22, "pipe", pipeFunc },
|
||||
{ 23, "select", selectFunc<X86Linux64> },
|
||||
{ 24, "sched_yield", ignoreFunc },
|
||||
{ 24, "sched_yield", ignoreWarnOnceFunc },
|
||||
{ 25, "mremap", mremapFunc<X86Linux64> },
|
||||
{ 26, "msync" },
|
||||
{ 27, "mincore" },
|
||||
@@ -111,7 +111,7 @@ SyscallDescTable<EmuLinux::SyscallABI64> EmuLinux::syscallDescs64 = {
|
||||
{ 72, "fcntl", fcntlFunc },
|
||||
{ 73, "flock" },
|
||||
{ 74, "fsync" },
|
||||
{ 75, "fdatasync" },
|
||||
{ 75, "fdatasync", ignoreFunc },
|
||||
{ 76, "truncate", truncateFunc },
|
||||
{ 77, "ftruncate", ftruncateFunc },
|
||||
#if defined(SYS_getdents)
|
||||
@@ -171,7 +171,7 @@ SyscallDescTable<EmuLinux::SyscallABI64> EmuLinux::syscallDescs64 = {
|
||||
{ 128, "rt_sigtimedwait" },
|
||||
{ 129, "rt_sigqueueinfo" },
|
||||
{ 130, "rt_sigsuspend" },
|
||||
{ 131, "sigaltstack" },
|
||||
{ 131, "sigaltstack", ignoreFunc },
|
||||
{ 132, "utime" },
|
||||
{ 133, "mknod", mknodFunc },
|
||||
{ 134, "uselib" },
|
||||
@@ -197,7 +197,7 @@ SyscallDescTable<EmuLinux::SyscallABI64> EmuLinux::syscallDescs64 = {
|
||||
{ 154, "modify_ldt" },
|
||||
{ 155, "pivot_root" },
|
||||
{ 156, "_sysctl" },
|
||||
{ 157, "prctl" },
|
||||
{ 157, "prctl", ignoreFunc },
|
||||
{ 158, "arch_prctl", archPrctlFunc },
|
||||
{ 159, "adjtimex" },
|
||||
{ 160, "setrlimit", ignoreFunc },
|
||||
|
||||
Reference in New Issue
Block a user