From 432ecdfbdcdf9316dcd2daabc79db2f27b72960b Mon Sep 17 00:00:00 2001 From: Kyle Roarty Date: Fri, 24 May 2019 13:34:17 -0500 Subject: [PATCH] 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 --- src/arch/x86/linux/process.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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" }, -- 2.30.2