qemu/linux-user/host
Warner Losh 0763788868 linux-user/signal.c: Create a common rewind_if_in_safe_syscall
All instances of rewind_if_in_safe_syscall are the same, differing only
in how the instruction point is fetched from the ucontext and the size
of the registers. Use host_signal_pc and new host_signal_set_pc
interfaces to fetch the pointer to the PC and adjust if needed. Delete
all the old copies of rewind_if_in_safe_syscall.

Acked-by: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20211113045603.60391-3-imp@bsdimp.com>
[rth: include safe-syscall.h, simplify ifdefs]
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
2021-11-23 01:47:20 +01:00
..
aarch64 linux-user/signal.c: Create a common rewind_if_in_safe_syscall 2021-11-23 01:47:20 +01:00
alpha linux-user: Add host_signal_set_pc to set pc in mcontext 2021-11-23 01:47:01 +01:00
arm linux-user/signal.c: Create a common rewind_if_in_safe_syscall 2021-11-23 01:47:20 +01:00
i386 linux-user/signal.c: Create a common rewind_if_in_safe_syscall 2021-11-23 01:47:20 +01:00
ia64 linux-user: Clean up hostdep.h header guards 2016-07-12 16:19:16 +02:00
mips linux-user: Add host_signal_set_pc to set pc in mcontext 2021-11-23 01:47:01 +01:00
ppc linux-user: Add host_signal_set_pc to set pc in mcontext 2021-11-23 01:47:01 +01:00
ppc64 linux-user/signal.c: Create a common rewind_if_in_safe_syscall 2021-11-23 01:47:20 +01:00
riscv linux-user/signal.c: Create a common rewind_if_in_safe_syscall 2021-11-23 01:47:20 +01:00
s390 linux-user: Add host_signal_set_pc to set pc in mcontext 2021-11-23 01:47:01 +01:00
s390x linux-user/signal.c: Create a common rewind_if_in_safe_syscall 2021-11-23 01:47:20 +01:00
sparc linux-user: Add host_signal_set_pc to set pc in mcontext 2021-11-23 01:47:01 +01:00
sparc64 linux-user/host/sparc: Populate host_signal.h 2021-11-02 07:00:43 -04:00
x32 linux-user/host/x86: Populate host_signal.h 2021-11-02 07:00:38 -04:00
x86_64 linux-user/signal.c: Create a common rewind_if_in_safe_syscall 2021-11-23 01:47:20 +01:00