[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 01/13] linux-user: Implement membarrier syscall
From: |
Laurent Vivier |
Subject: |
[PULL 01/13] linux-user: Implement membarrier syscall |
Date: |
Thu, 20 Feb 2020 10:20:41 +0100 |
From: Andreas Schwab <address@hidden>
Signed-off-by: Andreas Schwab <address@hidden>
Reviewed-by: Laurent Vivier <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Laurent Vivier <address@hidden>
---
linux-user/syscall.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index c930577686da..7aaa9d96397c 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -334,6 +334,9 @@ _syscall5(int, kcmp, pid_t, pid1, pid_t, pid2, int, type,
_syscall5(int, sys_statx, int, dirfd, const char *, pathname, int, flags,
unsigned int, mask, struct target_statx *, statxbuf)
#endif
+#if defined(TARGET_NR_membarrier) && defined(__NR_membarrier)
+_syscall2(int, membarrier, int, cmd, int, flags)
+#endif
static bitmask_transtbl fcntl_flags_tbl[] = {
{ TARGET_O_ACCMODE, TARGET_O_WRONLY, O_ACCMODE, O_WRONLY, },
@@ -12090,6 +12093,10 @@ static abi_long do_syscall1(void *cpu_env, int num,
abi_long arg1,
unlock_user(p, arg1, 0);
return ret;
#endif
+#if defined TARGET_NR_membarrier && defined __NR_membarrier
+ case TARGET_NR_membarrier:
+ return get_errno(membarrier(arg1, arg2));
+#endif
default:
qemu_log_mask(LOG_UNIMP, "Unsupported syscall: %d\n", num);
--
2.24.1
- [PULL 00/13] Linux user for 5.0 patches, Laurent Vivier, 2020/02/20
- [PULL 03/13] configure: linux-user doesn't need neither fdt nor slirp, Laurent Vivier, 2020/02/20
- [PULL 09/13] linux-user: Add support for getting alsa timer version and id, Laurent Vivier, 2020/02/20
- [PULL 05/13] configure: Avoid compiling system tools on user build by default, Laurent Vivier, 2020/02/20
- [PULL 02/13] linux-user: implement getsockopt SO_RCVTIMEO and SO_SNDTIMEO, Laurent Vivier, 2020/02/20
- [PULL 01/13] linux-user: Implement membarrier syscall,
Laurent Vivier <=
- [PULL 12/13] linux-user: Add support for getting/setting selected alsa timer parameters using ioctls, Laurent Vivier, 2020/02/20
- [PULL 08/13] linux-user: remove gemu_log from the linux-user tree, Laurent Vivier, 2020/02/20
- [PULL 04/13] linux-user/strace: Improve output of various syscalls, Laurent Vivier, 2020/02/20
- [PULL 10/13] linux-user: Add support for getting/setting specified alsa timer parameters using ioctls, Laurent Vivier, 2020/02/20
- [PULL 06/13] linux-user: Use `qemu_log' for non-strace logging, Laurent Vivier, 2020/02/20
- [PULL 11/13] linux-user: Add support for selecting alsa timer using ioctl, Laurent Vivier, 2020/02/20
- [PULL 13/13] linux-user: Add support for selected alsa timer instructions using ioctls, Laurent Vivier, 2020/02/20
- [PULL 07/13] linux-user: Use `qemu_log' for strace, Laurent Vivier, 2020/02/20
- Re: [PULL 00/13] Linux user for 5.0 patches, Peter Maydell, 2020/02/21