diff options
author | Richard Henderson | 2021-11-15 20:08:23 +0100 |
---|---|---|
committer | Richard Henderson | 2021-12-20 05:47:33 +0100 |
commit | 0a7e01904d407baa73c1baddbdfc9ccf2ace8356 (patch) | |
tree | 5ba3470a147e447160e7d9403469b020940a2f92 /linux-user/safe-syscall.h | |
parent | linux-user/host/sparc64: Add safe-syscall.inc.S (diff) | |
download | qemu-0a7e01904d407baa73c1baddbdfc9ccf2ace8356.tar.gz qemu-0a7e01904d407baa73c1baddbdfc9ccf2ace8356.tar.xz qemu-0a7e01904d407baa73c1baddbdfc9ccf2ace8356.zip |
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/safe-syscall.h')
-rw-r--r-- | linux-user/safe-syscall.h | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/linux-user/safe-syscall.h b/linux-user/safe-syscall.h index 97837faddb..f43267a8fc 100644 --- a/linux-user/safe-syscall.h +++ b/linux-user/safe-syscall.h @@ -124,7 +124,7 @@ * need to check SA_RESTART flags in QEMU or distinguish the various * kinds of restartability. */ -#ifdef HAVE_SAFE_SYSCALL + /* The core part of this function is implemented in assembly */ extern long safe_syscall_base(int *pending, long number, ...); extern long safe_syscall_set_errno_tail(int value); @@ -137,15 +137,4 @@ extern char safe_syscall_end[]; safe_syscall_base(&((TaskState *)thread_cpu->opaque)->signal_pending, \ __VA_ARGS__) -#else - -/* - * Fallback for architectures which don't yet provide a safe-syscall assembly - * fragment; note that this is racy! - * This should go away when all host architectures have been updated. - */ -#define safe_syscall syscall - -#endif - #endif |