summaryrefslogtreecommitdiff
path: root/src/arch/riscv/linux/process.cc
diff options
context:
space:
mode:
authorTuan Ta <qtt2@cornell.edu>2017-12-22 20:10:46 -0500
committerTuan Ta <qtt2@cornell.edu>2018-01-05 15:34:20 +0000
commit954bd6b08565c02abf4fec06cdcbc2e6cd25cb04 (patch)
tree5163cac50d6e4084201602d1d35b75b0fb7c6b4f /src/arch/riscv/linux/process.cc
parentd1f665aad2417a68039bb5aa7b0afa77343cb319 (diff)
downloadgem5-954bd6b08565c02abf4fec06cdcbc2e6cd25cb04.tar.xz
arch-riscv: Ignore sched_yield syscall in SE mode
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>
Diffstat (limited to 'src/arch/riscv/linux/process.cc')
-rw-r--r--src/arch/riscv/linux/process.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/riscv/linux/process.cc b/src/arch/riscv/linux/process.cc
index 4c10efe45..0f540af9d 100644
--- a/src/arch/riscv/linux/process.cc
+++ b/src/arch/riscv/linux/process.cc
@@ -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")},