From patchwork Sat Sep 12 15:32:30 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chen Gang X-Patchwork-Id: 517100 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 422661402BB for ; Sun, 13 Sep 2015 01:33:15 +1000 (AEST) Received: from localhost ([::1]:32854 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zamng-000145-Nl for incoming@patchwork.ozlabs.org; Sat, 12 Sep 2015 11:33:12 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57798) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZamnS-0000mR-65 for qemu-devel@nongnu.org; Sat, 12 Sep 2015 11:32:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZamnO-00089a-VR for qemu-devel@nongnu.org; Sat, 12 Sep 2015 11:32:58 -0400 Received: from smtpbg63.qq.com ([103.7.29.150]:40160) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZamnO-00087c-Cd for qemu-devel@nongnu.org; Sat, 12 Sep 2015 11:32:54 -0400 X-QQ-mid: esmtp32t1442071953t585t27518 Received: from localhost.localdomain (unknown [223.72.67.46]) by esmtp4.qq.com (ESMTP) with id ; Sat, 12 Sep 2015 23:32:31 +0800 (CST) X-QQ-SSF: 01000000000000F0FG400F00002000H X-QQ-FEAT: 7dyrQdWWwZJuhjsJCMRLPaHIW7SIcnJDGsQ6a4qmX46+2CY2jwwDdUANX8vpd DlI7uLnvI4elSNJIXYGBoFlrY6jygkYrXrOqkglDTVmRQzjuhbOqbI4bGa9h/VxtzTW+EHa DLQnJkUe7Bfc5RJDZ+eTKS3WpU5pzR95FrneGIGVumcNovIaqHo6gpnAZK9psLDS8d3NhZv UrWGkhQ1+Pi8qpptx2P2sIWIswYvOVi3D0GFhWft33g== X-QQ-GoodBg: 0 X-QQ-CSender: gang.chen.5i5j@qq.com From: gang.chen.5i5j@gmail.com To: riku.voipio@iki.fi, peter.maydell@linaro.org Date: Sat, 12 Sep 2015 23:32:30 +0800 Message-Id: <1442071950-9414-1-git-send-email-gang.chen.5i5j@gmail.com> X-Mailer: git-send-email 1.9.3 X-QQ-SENDSIZE: 520 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x X-Received-From: 103.7.29.150 Cc: Chen Gang , qemu-devel@nongnu.org, xili_gchen_5257@hotmail.com, rth@twiddle.net Subject: [Qemu-devel] [PATCH] linux-user/signal.c: Use setup_rt_frame() instead of setup_frame() for target openrisc X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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(). Signed-off-by: Chen Gang Reviewed-by: Peter Maydell --- 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