aboutsummaryrefslogtreecommitdiff
path: root/linux-user/signal.c
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2021-11-15 22:08:23 +0300
committerRichard Henderson <richard.henderson@linaro.org>2021-12-19 20:47:33 -0800
commit0a7e01904d407baa73c1baddbdfc9ccf2ace8356 (patch)
tree5ba3470a147e447160e7d9403469b020940a2f92 /linux-user/signal.c
parent95c021dac8358b9dffe4a2c05dea4ccce589ac47 (diff)
downloadqemu-0a7e01904d407baa73c1baddbdfc9ccf2ace8356.zip
qemu-0a7e01904d407baa73c1baddbdfc9ccf2ace8356.tar.gz
qemu-0a7e01904d407baa73c1baddbdfc9ccf2ace8356.tar.bz2
linux-user: Remove HAVE_SAFE_SYSCALL and hostdep.h
All supported hosts now define HAVE_SAFE_SYSCALL, so remove the ifdefs. This leaves hostdep.h empty, so remove it. Reviewed-by: Warner Losh <imp@bsdimp.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'linux-user/signal.c')
-rw-r--r--linux-user/signal.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/linux-user/signal.c b/linux-user/signal.c
index 6d5e5b6..ca8f24b 100644
--- a/linux-user/signal.c
+++ b/linux-user/signal.c
@@ -798,7 +798,6 @@ int queue_signal(CPUArchState *env, int sig, int si_type,
/* Adjust the signal context to rewind out of safe-syscall if we're in it */
static inline void rewind_if_in_safe_syscall(void *puc)
{
-#ifdef HAVE_SAFE_SYSCALL
ucontext_t *uc = (ucontext_t *)puc;
uintptr_t pcreg = host_signal_pc(uc);
@@ -806,7 +805,6 @@ static inline void rewind_if_in_safe_syscall(void *puc)
&& pcreg < (uintptr_t)safe_syscall_end) {
host_signal_set_pc(uc, (uintptr_t)safe_syscall_start);
}
-#endif
}
static void host_signal_handler(int host_sig, siginfo_t *info, void *puc)