sim-se: Ignore unimplemented system call

System call sched_setaffinity causes crashes when running programs
that use ROCm. Ignoring the system call allows for the programs
to run to completion.

Change-Id: I27c767ef81091789e228d47f2bb5f6fa18f11539
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/30154
Reviewed-by: Brandon Potter <Brandon.Potter@amd.com>
Reviewed-by: Matt Sinclair <mattdsinclair@gmail.com>
Maintainer: Brandon Potter <Brandon.Potter@amd.com>
Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
Kyle Roarty
2019-05-24 13:34:17 -05:00
parent 9757529064
commit 432ecdfbdc

View File

@@ -460,7 +460,7 @@ static SyscallDescTable<X86_64LinuxProcess::SyscallABI> syscallDescs64 = {
{ 200, "tkill" },
{ 201, "time", timeFunc<X86Linux64> },
{ 202, "futex", futexFunc<X86Linux64> },
{ 203, "sched_setaffinity" },
{ 203, "sched_setaffinity", ignoreFunc },
{ 204, "sched_getaffinity", ignoreFunc },
{ 205, "set_thread_area" },
{ 206, "io_setup" },
@@ -837,7 +837,7 @@ static SyscallDescTable<I386LinuxProcess::SyscallABI> syscallDescs32 = {
{ 238, "tkill" },
{ 239, "sendfile64" },
{ 240, "futex" },
{ 241, "sched_setaffinity" },
{ 241, "sched_setaffinity", ignoreFunc },
{ 242, "sched_getaffinity", ignoreFunc },
{ 243, "set_thread_area", setThreadArea32Func },
{ 244, "get_thread_area" },