Kyle Roarty has submitted this change. ( https://gem5-review.googlesource.com/c/public/gem5/+/30154 )

Change subject: sim-se: Ignore unimplemented system call
......................................................................

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.pot...@amd.com>
Reviewed-by: Matt Sinclair <mattdsincl...@gmail.com>
Maintainer: Brandon Potter <brandon.pot...@amd.com>
Tested-by: kokoro <noreply+kok...@google.com>
---
M src/arch/x86/linux/process.cc
1 file changed, 2 insertions(+), 2 deletions(-)

Approvals:
  Brandon Potter: Looks good to me, approved; Looks good to me, approved
  Matt Sinclair: Looks good to me, approved
  kokoro: Regressions pass



diff --git a/src/arch/x86/linux/process.cc b/src/arch/x86/linux/process.cc
index 2c594e7..3a86b76 100644
--- a/src/arch/x86/linux/process.cc
+++ b/src/arch/x86/linux/process.cc
@@ -460,7 +460,7 @@
     { 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 @@
     { 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" },

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/30154
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: I27c767ef81091789e228d47f2bb5f6fa18f11539
Gerrit-Change-Number: 30154
Gerrit-PatchSet: 2
Gerrit-Owner: Kyle Roarty <kyleroarty1...@gmail.com>
Gerrit-Reviewer: Anthony Gutierrez <anthony.gutier...@amd.com>
Gerrit-Reviewer: Bradford Beckmann <brad.beckm...@amd.com>
Gerrit-Reviewer: Brandon Potter <brandon.pot...@amd.com>
Gerrit-Reviewer: Jason Lowe-Power <power...@gmail.com>
Gerrit-Reviewer: Kyle Roarty <kyleroarty1...@gmail.com>
Gerrit-Reviewer: Matt Sinclair <mattdsincl...@gmail.com>
Gerrit-Reviewer: kokoro <noreply+kok...@google.com>
Gerrit-MessageType: merged
_______________________________________________
gem5-dev mailing list -- gem5-dev@gem5.org
To unsubscribe send an email to gem5-dev-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to