Kyle Roarty has uploaded this change for review. ( 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
---
M src/arch/x86/linux/process.cc
1 file changed, 2 insertions(+), 2 deletions(-)



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: 1
Gerrit-Owner: Kyle Roarty <kyleroarty1...@gmail.com>
Gerrit-MessageType: newchange
_______________________________________________
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