[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 13/16] linux-user, ppc: fix clock_nanosleep() for linux-user-
From: |
Alex Bennée |
Subject: |
[PATCH v3 13/16] linux-user, ppc: fix clock_nanosleep() for linux-user-ppc |
Date: |
Fri, 24 Jul 2020 07:45:06 +0100 |
From: Laurent Vivier <laurent@vivier.eu>
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>
Message-Id: <20200722174612.2917566-3-laurent@vivier.eu>
---
linux-user/syscall.c | 7 -------
1 file changed, 7 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 43a6e283961..f5c4f6b95db 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
--
2.20.1
- [PATCH v3 10/16] tests/docker: fix binfmt_misc image building, (continued)
- [PATCH v3 10/16] tests/docker: fix binfmt_misc image building, Alex Bennée, 2020/07/24
- [PATCH v3 07/16] target/i386: floatx80: avoid compound literals in static initializers, Alex Bennée, 2020/07/24
- [PATCH v3 12/16] linux-user: fix clock_nanosleep(), Alex Bennée, 2020/07/24
- [PATCH v3 16/16] tests/vm: add shutdown timeout in basevm.py, Alex Bennée, 2020/07/24
- [PATCH v3 11/16] tests/docker: add support for DEB_KEYRING, Alex Bennée, 2020/07/24
- [PATCH v3 14/16] python/qemu: Cleanup changes to ConsoleSocket, Alex Bennée, 2020/07/24
- [PATCH v3 09/16] tests/docker: fix update command due to python3 str/bytes distinction, Alex Bennée, 2020/07/24
- [PATCH v3 13/16] linux-user, ppc: fix clock_nanosleep() for linux-user-ppc,
Alex Bennée <=
- [PATCH v3 15/16] python/qemu: Change ConsoleSocket to optionally drain socket., Alex Bennée, 2020/07/24