mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
linux-user: Implement PI futexes
Define the missing FUTEX_* constants in syscall_defs.h Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Laurent Vivier <laurent@vivier.eu> Message-Id: <20220829021006.67305-6-richard.henderson@linaro.org> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
This commit is contained in:
parent
0f94673112
commit
c72a90df47
2 changed files with 13 additions and 0 deletions
|
@ -7788,8 +7788,17 @@ static int do_futex(CPUState *cpu, bool time64, target_ulong uaddr,
|
|||
case FUTEX_WAIT_BITSET:
|
||||
val = tswap32(val);
|
||||
break;
|
||||
case FUTEX_WAIT_REQUEUE_PI:
|
||||
val = tswap32(val);
|
||||
haddr2 = g2h(cpu, uaddr2);
|
||||
break;
|
||||
case FUTEX_LOCK_PI:
|
||||
case FUTEX_LOCK_PI2:
|
||||
break;
|
||||
case FUTEX_WAKE:
|
||||
case FUTEX_WAKE_BITSET:
|
||||
case FUTEX_TRYLOCK_PI:
|
||||
case FUTEX_UNLOCK_PI:
|
||||
timeout = 0;
|
||||
break;
|
||||
case FUTEX_FD:
|
||||
|
@ -7797,6 +7806,7 @@ static int do_futex(CPUState *cpu, bool time64, target_ulong uaddr,
|
|||
timeout = 0;
|
||||
break;
|
||||
case FUTEX_CMP_REQUEUE:
|
||||
case FUTEX_CMP_REQUEUE_PI:
|
||||
val3 = tswap32(val3);
|
||||
/* fall through */
|
||||
case FUTEX_REQUEUE:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue