From 954bd6b08565c02abf4fec06cdcbc2e6cd25cb04 Mon Sep 17 00:00:00 2001 From: Tuan Ta Date: Fri, 22 Dec 2017 20:10:46 -0500 Subject: [PATCH] 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 --- src/arch/riscv/linux/process.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")}, -- 2.30.2