summaryrefslogtreecommitdiffstats
path: root/linux-user/syscall.c
diff options
context:
space:
mode:
authorLaurent Vivier2020-07-24 08:45:06 +0200
committerAlex Bennée2020-07-27 10:41:47 +0200
commit445883885a3507e3a0898df0084a59ba65ee9979 (patch)
tree27b7c1b0d3524e975edfb5da32fa0e8494c9bd40 /linux-user/syscall.c
parentlinux-user: fix clock_nanosleep() (diff)
downloadqemu-445883885a3507e3a0898df0084a59ba65ee9979.tar.gz
qemu-445883885a3507e3a0898df0084a59ba65ee9979.tar.xz
qemu-445883885a3507e3a0898df0084a59ba65ee9979.zip
linux-user, ppc: fix clock_nanosleep() for linux-user-ppc
Our safe_clock_nanosleep() returns -1 and updates errno. We don't need to update the CRF bit in syscall.c because it will be updated in ppc/cpu_loop.c as the return value is negative. Signed-off-by: Laurent Vivier <laurent@vivier.eu> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20200722174612.2917566-3-laurent@vivier.eu> Message-Id: <20200724064509.331-14-alex.bennee@linaro.org>
Diffstat (limited to 'linux-user/syscall.c')
-rw-r--r--linux-user/syscall.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 43a6e28396..f5c4f6b95d 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -11840,13 +11840,6 @@ static abi_long do_syscall1(void *cpu_env, int num, abi_long arg1,
host_to_target_timespec(arg4, &ts);
}
-#if defined(TARGET_PPC)
- /* clock_nanosleep is odd in that it returns positive errno values.
- * On PPC, CR0 bit 3 should be set in such a situation. */
- if (ret && ret != -TARGET_ERESTARTSYS) {
- ((CPUPPCState *)cpu_env)->crf[0] |= 1;
- }
-#endif
return ret;
}
#endif