From: Michael Tokarev Date: Tue, 29 Dec 2015 09:51:13 +0000 (+0300) Subject: linux-user: enable sigaltstack for all architectures X-Git-Tag: v2.6.0-rc0~232^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c0d35736323e5b638aac45bfc25f74fa7b6e10f1;p=thirdparty%2Fqemu.git linux-user: enable sigaltstack for all architectures There is no reason to limit sigaltstack syscall to just a few architectures and pretend it is not implemented for others. If some architecture is not ready for this, that architecture should be fixed instead. This fixes LP#1516408. Signed-off-by: Michael Tokarev Reviewed-by: Peter Maydell Signed-off-by: Riku Voipio --- diff --git a/linux-user/syscall.c b/linux-user/syscall.c index ff20ea7d74d..d1eb3eb6a58 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -8503,14 +8503,8 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1, break; } case TARGET_NR_sigaltstack: -#if defined(TARGET_I386) || defined(TARGET_ARM) || defined(TARGET_MIPS) || \ - defined(TARGET_SPARC) || defined(TARGET_PPC) || defined(TARGET_ALPHA) || \ - defined(TARGET_M68K) || defined(TARGET_S390X) || defined(TARGET_OPENRISC) ret = do_sigaltstack(arg1, arg2, get_sp_from_cpustate((CPUArchState *)cpu_env)); break; -#else - goto unimplemented; -#endif #ifdef CONFIG_SENDFILE case TARGET_NR_sendfile: