From: Tuan Ta Date: Sat, 23 Dec 2017 01:10:46 +0000 (-0500) Subject: arch-riscv: Ignore sched_yield syscall in SE mode X-Git-Tag: v19.0.0.0~2402 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=954bd6b08565c02abf4fec06cdcbc2e6cd25cb04;p=gem5.git arch-riscv: Ignore sched_yield syscall in SE mode Change-Id: I14f22c06eb8fdbe063980b4cd0a49387b9113a97 Reviewed-on: https://gem5-review.googlesource.com/6961 Maintainer: Brandon Potter Reviewed-by: Alec Roelke --- 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 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")},