From patchwork Fri Oct 2 13:01:04 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Riku Voipio X-Patchwork-Id: 54440 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f70.google.com (mail-la0-f70.google.com [209.85.215.70]) by patches.linaro.org (Postfix) with ESMTPS id 4EFA423009 for ; Fri, 2 Oct 2015 13:52:40 +0000 (UTC) Received: by lafb9 with SMTP id b9sf3199267laf.3 for ; Fri, 02 Oct 2015 06:52:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:date :message-id:in-reply-to:references:cc:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=adkkDBC1t/2SyIKG54ITRix0btvC6By07tTYjso6Njw=; b=P08GfYPU6UAZurTujG/S7dSQCyNEZGpEQr3oIiEUpO2JiFUQgkGMnVpav1DYFcOKkl eFxR4JBVdF67VmF0hFzQlJFHqNxop/pG5HR/Av/gQg9aXeFQQC6pIWctIKkQWD/9ginm x+kSJMfRiNAsidTasHxSqWZs6NfVIJYNqlQBA2SDAvE3fYhZR9uuq9wTHCVlNIhJrV2w f95ZEdvtf+Po0os4QQGzi9JuGgsmVIa72buYvyadnX7w1uuDyvhJWsu0G+tMJfg8lyEr M3JFcMaFX+Ouw/of+NhFwUDPtE35u9C4u+lpdJAflTjt/FK5cfV0S/x0nE0eIQyLuFFX 4+ZQ== X-Gm-Message-State: ALoCoQn9Dqg9SKo9SiNoTyrN+yssAmjK2D14357e+VdununLl1S9RCsaZIhqnd5QgHPtKbnwXsUN X-Received: by 10.180.106.197 with SMTP id gw5mr970237wib.7.1443793959199; Fri, 02 Oct 2015 06:52:39 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.19.223 with SMTP id 92ls236772lft.101.gmail; Fri, 02 Oct 2015 06:52:38 -0700 (PDT) X-Received: by 10.112.163.193 with SMTP id yk1mr5480019lbb.1.1443793958909; Fri, 02 Oct 2015 06:52:38 -0700 (PDT) Received: from mail-la0-f43.google.com (mail-la0-f43.google.com. [209.85.215.43]) by mx.google.com with ESMTPS id j2si6298195lfe.166.2015.10.02.06.52.38 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 02 Oct 2015 06:52:38 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.43 as permitted sender) client-ip=209.85.215.43; Received: by laer8 with SMTP id r8so92779447lae.2 for ; Fri, 02 Oct 2015 06:52:38 -0700 (PDT) X-Received: by 10.112.159.136 with SMTP id xc8mr3201452lbb.76.1443793958457; Fri, 02 Oct 2015 06:52:38 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp1259234lbq; Fri, 2 Oct 2015 06:52:36 -0700 (PDT) X-Received: by 10.140.104.33 with SMTP id z30mr20077644qge.0.1443793956544; Fri, 02 Oct 2015 06:52:36 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id m34si10366951qgd.65.2015.10.02.06.52.36 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 02 Oct 2015 06:52:36 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Received: from localhost ([::1]:60003 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zi0lI-00062R-3A for patch@linaro.org; Fri, 02 Oct 2015 09:52:36 -0400 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) X-Received: by 10.112.87.69 with SMTP id v5mr5418763lbz.70.1443790882055; Fri, 02 Oct 2015 06:01:22 -0700 (PDT) Received: from localhost.localdomain (91-157-196-38.elisa-laajakaista.fi. [91.157.196.38]) by smtp.gmail.com with ESMTPSA id w143sm1514751lfd.2.2015.10.02.06.01.21 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 02 Oct 2015 06:01:21 -0700 (PDT) From: riku.voipio@linaro.org To: qemu-devel@nongnu.org Date: Fri, 2 Oct 2015 16:01:04 +0300 Message-Id: X-Mailer: git-send-email 2.5.3 In-Reply-To: References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.217.182 Cc: Chen Gang Subject: [Qemu-devel] [PULL 12/13] 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: riku.voipio@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.43 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 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