arch-riscv: Ignore sched_yield syscall in SE mode
authorTuan Ta <qtt2@cornell.edu>
Sat, 23 Dec 2017 01:10:46 +0000 (20:10 -0500)
committerTuan Ta <qtt2@cornell.edu>
Fri, 5 Jan 2018 15:34:20 +0000 (15:34 +0000)
Change-Id: I14f22c06eb8fdbe063980b4cd0a49387b9113a97
Reviewed-on: https://gem5-review.googlesource.com/6961
Maintainer: Brandon Potter <Brandon.Potter@amd.com>
Reviewed-by: Alec Roelke <ar4jc@virginia.edu>
src/arch/riscv/linux/process.cc

index 4c10efe4550904915f123ccde25a9aa36cd53eb2..0f540af9d0bf75f118838d3145fb703a8b9765fa 100644 (file)
@@ -193,7 +193,7 @@ std::map<int, SyscallDesc> RiscvLinuxProcess::syscallDescs = {
     {121,  SyscallDesc("sched_getparam")},
     {122,  SyscallDesc("sched_setaffinity")},
     {123,  SyscallDesc("sched_getaffinity")},
-    {124,  SyscallDesc("sched_yield")},
+    {124,  SyscallDesc("sched_yield", ignoreFunc, SyscallDesc::WarnOnce)},
     {125,  SyscallDesc("sched_get_priority_max")},
     {126,  SyscallDesc("sched_get_priority_min")},
     {127,  SyscallDesc("scheD_rr_get_interval")},