]> git.proxmox.com Git - mirror_qemu.git/commit
linux-user: Split out do_prctl and subroutines
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 27 Dec 2021 15:01:22 +0000 (07:01 -0800)
committerLaurent Vivier <laurent@vivier.eu>
Thu, 6 Jan 2022 10:40:52 +0000 (11:40 +0100)
commit87e9bf23236d3c9da84f2b6164e06be3ecfd45e0
tree88649d04f1acdb15166a9e0cb05c209ab85b3aa0
parentc1e8e3a746f6e4fb90ae65c715a4f79f6b4b6cf6
linux-user: Split out do_prctl and subroutines

Since the prctl constants are supposed to be generic, supply
any that are not provided by the host.

Split out subroutines for PR_GET_FP_MODE, PR_SET_FP_MODE,
PR_GET_VL, PR_SET_VL, PR_RESET_KEYS, PR_SET_TAGGED_ADDR_CTRL,
PR_GET_TAGGED_ADDR_CTRL.  Return EINVAL for guests that do
not support these options rather than pass them on to the host.

Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20211227150127.2659293-2-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
24 files changed:
linux-user/aarch64/target_prctl.h [new file with mode: 0644]
linux-user/aarch64/target_syscall.h
linux-user/alpha/target_prctl.h [new file with mode: 0644]
linux-user/arm/target_prctl.h [new file with mode: 0644]
linux-user/cris/target_prctl.h [new file with mode: 0644]
linux-user/hexagon/target_prctl.h [new file with mode: 0644]
linux-user/hppa/target_prctl.h [new file with mode: 0644]
linux-user/i386/target_prctl.h [new file with mode: 0644]
linux-user/m68k/target_prctl.h [new file with mode: 0644]
linux-user/microblaze/target_prctl.h [new file with mode: 0644]
linux-user/mips/target_prctl.h [new file with mode: 0644]
linux-user/mips/target_syscall.h
linux-user/mips64/target_prctl.h [new file with mode: 0644]
linux-user/mips64/target_syscall.h
linux-user/nios2/target_prctl.h [new file with mode: 0644]
linux-user/openrisc/target_prctl.h [new file with mode: 0644]
linux-user/ppc/target_prctl.h [new file with mode: 0644]
linux-user/riscv/target_prctl.h [new file with mode: 0644]
linux-user/s390x/target_prctl.h [new file with mode: 0644]
linux-user/sh4/target_prctl.h [new file with mode: 0644]
linux-user/sparc/target_prctl.h [new file with mode: 0644]
linux-user/syscall.c
linux-user/x86_64/target_prctl.h [new file with mode: 0644]
linux-user/xtensa/target_prctl.h [new file with mode: 0644]