From: Kyle Roarty Date: Fri, 24 May 2019 18:34:17 +0000 (-0500) Subject: sim-se: Ignore unimplemented system call X-Git-Tag: v20.1.0.0~597 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=432ecdfbdcdf9316dcd2daabc79db2f27b72960b;p=gem5.git 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 Reviewed-by: Matt Sinclair Maintainer: Brandon Potter Tested-by: kokoro --- diff --git a/src/arch/x86/linux/process.cc b/src/arch/x86/linux/process.cc index 2c594e756..3a86b7654 100644 --- a/src/arch/x86/linux/process.cc +++ b/src/arch/x86/linux/process.cc @@ -460,7 +460,7 @@ static SyscallDescTable syscallDescs64 = { { 200, "tkill" }, { 201, "time", timeFunc }, { 202, "futex", futexFunc }, - { 203, "sched_setaffinity" }, + { 203, "sched_setaffinity", ignoreFunc }, { 204, "sched_getaffinity", ignoreFunc }, { 205, "set_thread_area" }, { 206, "io_setup" }, @@ -837,7 +837,7 @@ static SyscallDescTable 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" },