diff options
author | Laurent Vivier | 2018-04-24 21:26:35 +0200 |
---|---|---|
committer | Laurent Vivier | 2018-04-30 09:47:47 +0200 |
commit | cb6ac802efea73605288f5d18e28611cbc97d9d2 (patch) | |
tree | 4307548dea3fe65605faead8c56256635669bc5e /linux-user/mips/target_signal.h | |
parent | linux-user: move ppc/ppc64 signal.c parts to ppc directory (diff) | |
download | qemu-cb6ac802efea73605288f5d18e28611cbc97d9d2.tar.gz qemu-cb6ac802efea73605288f5d18e28611cbc97d9d2.tar.xz qemu-cb6ac802efea73605288f5d18e28611cbc97d9d2.zip |
linux-user: define TARGET_ARCH_HAS_SETUP_FRAME
Instead of calling setup_frame() conditionally to a list of known targets,
define TARGET_ARCH_HAS_SETUP_FRAME if the target provides the function
and call it only if the macro is defined.
Move declarations of setup_frame() and setup_rt_frame() to
linux-user/signal-common.h
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20180424192635.6027-21-laurent@vivier.eu>
Diffstat (limited to 'linux-user/mips/target_signal.h')
-rw-r--r-- | linux-user/mips/target_signal.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/linux-user/mips/target_signal.h b/linux-user/mips/target_signal.h index 22ab3e4a94..d36f5da0a0 100644 --- a/linux-user/mips/target_signal.h +++ b/linux-user/mips/target_signal.h @@ -26,12 +26,8 @@ static inline abi_ulong get_sp_from_cpustate(CPUMIPSState *state) return state->active_tc.gpr[29]; } -# if defined(TARGET_ABI_MIPSO32) +#if defined(TARGET_ABI_MIPSO32) /* compare linux/arch/mips/kernel/signal.c:setup_frame() */ -void setup_frame(int sig, struct target_sigaction * ka, - target_sigset_t *set, CPUMIPSState *regs); +#define TARGET_ARCH_HAS_SETUP_FRAME #endif -void setup_rt_frame(int sig, struct target_sigaction *ka, - target_siginfo_t *info, - target_sigset_t *set, CPUMIPSState *env); #endif /* MIPS_TARGET_SIGNAL_H */ |