aboutsummaryrefslogtreecommitdiff
path: root/linux-user/syscall.c
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2022-08-28 19:10:02 -0700
committerLaurent Vivier <laurent@vivier.eu>2022-09-27 13:19:05 +0200
commit0f9467311260c23eed758f97c75d83f1815acb29 (patch)
treeb04d26efd8e6a670c03dca7094c05ef344d9e3ab /linux-user/syscall.c
parenta6180f8aede726c1648b1ae3a602058c93f859c8 (diff)
linux-user: Convert signal number for FUTEX_FD
The val argument to FUTEX_FD is a signal number. Convert to match the host, as it will be converted back when the signal is delivered. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Laurent Vivier <laurent@vivier.eu> Message-Id: <20220829021006.67305-5-richard.henderson@linaro.org> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'linux-user/syscall.c')
-rw-r--r--linux-user/syscall.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index e2b6b564e6..3f144e3c1f 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -7793,6 +7793,7 @@ static int do_futex(CPUState *cpu, bool time64, target_ulong uaddr,
timeout = 0;
break;
case FUTEX_FD:
+ val = target_to_host_signal(val);
timeout = 0;
break;
case FUTEX_CMP_REQUEUE: