From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37391) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zhzxn-0005Te-4j for qemu-devel@nongnu.org; Fri, 02 Oct 2015 09:01:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zhzxj-0000gh-8R for qemu-devel@nongnu.org; Fri, 02 Oct 2015 09:01:27 -0400 Received: from mail-lb0-f182.google.com ([209.85.217.182]:35788) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zhzxi-0000gQ-Pw for qemu-devel@nongnu.org; Fri, 02 Oct 2015 09:01:23 -0400 Received: by lbwr8 with SMTP id r8so25930360lbw.2 for ; Fri, 02 Oct 2015 06:01:22 -0700 (PDT) From: riku.voipio@linaro.org Date: Fri, 2 Oct 2015 16:01:04 +0300 Message-Id: In-Reply-To: References: Subject: [Qemu-devel] [PULL 12/13] linux-user/signal.c: Use setup_rt_frame() instead of setup_frame() for target openrisc List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Chen Gang From: Chen Gang qemu has already considered about some targets may have no traditional signals. And openrisc's setup_frame() is dummy, but it can be supported by setup_rt_frame(). Reviewed-by: Peter Maydell Signed-off-by: Chen Gang Signed-off-by: Riku Voipio --- linux-user/signal.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/linux-user/signal.c b/linux-user/signal.c index 502efd9..ac82baa 100644 --- a/linux-user/signal.c +++ b/linux-user/signal.c @@ -3900,12 +3900,6 @@ static inline abi_ulong get_sigframe(struct target_sigaction *ka, return sp; } -static void setup_frame(int sig, struct target_sigaction *ka, - target_sigset_t *set, CPUOpenRISCState *env) -{ - qemu_log("Not implement.\n"); -} - static void setup_rt_frame(int sig, struct target_sigaction *ka, target_siginfo_t *info, target_sigset_t *set, CPUOpenRISCState *env) @@ -5662,7 +5656,8 @@ void process_pending_signals(CPUArchState *cpu_env) } #endif /* prepare the stack frame of the virtual CPU */ -#if defined(TARGET_ABI_MIPSN32) || defined(TARGET_ABI_MIPSN64) +#if defined(TARGET_ABI_MIPSN32) || defined(TARGET_ABI_MIPSN64) \ + || defined(TARGET_OPENRISC) /* These targets do not have traditional signals. */ setup_rt_frame(sig, sa, &q->info, &target_old_set, cpu_env); #else -- 2.5.3