From patchwork Tue Jan 14 16:43:06 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Newton X-Patchwork-Id: 23192 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f70.google.com (mail-pa0-f70.google.com [209.85.220.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1BD662066C for ; Tue, 14 Jan 2014 16:44:47 +0000 (UTC) Received: by mail-pa0-f70.google.com with SMTP id kq14sf6316211pab.5 for ; Tue, 14 Jan 2014 08:44:46 -0800 (PST) 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=kn7dahMB5V02jhYpMRSCAxZJuM06DgtIw3KelVB9sic=; b=JGvSjLoesa14W7IuVN475+VWyCesDR0s7eNMHEATQMu40rg5K51JhSD5bPZCRRAZ9m kUMaitQVW8oO7nSGgCREg66AajMBNndQ7nFZmP7ZmcieOARYzxMXrDg1dgHt+4F201DB +pO4qIgH7q1/BI9682rsUopIduZXFRZXyRvn5SzUVYrOh516omXGRnA+fPOkzTfZklw7 wemjlhOijdodzHuAYhZSBEAH1sS2iPauhgunfXijEoIW1zM0syTjvH+/O46uHkcBigtN QGzRsPT0vj4uWxDlQuynQQJ+v/MyzaNnmcXBizoY/tuI1SeqZQjypQH/7qKS0lHHmrTY bHEw== X-Gm-Message-State: ALoCoQlaRLmPbk8hArRAbWhYM6xnhFDViwjeRcBUCRWOxLIT4DMGnckNpSeDNe9v4xVhsbodqQuY X-Received: by 10.66.102.36 with SMTP id fl4mr884322pab.20.1389717886402; Tue, 14 Jan 2014 08:44:46 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.29.197 with SMTP id m5ls182238qeh.43.gmail; Tue, 14 Jan 2014 08:44:46 -0800 (PST) X-Received: by 10.58.209.36 with SMTP id mj4mr946794vec.47.1389717886234; Tue, 14 Jan 2014 08:44:46 -0800 (PST) Received: from mail-vc0-f178.google.com (mail-vc0-f178.google.com [209.85.220.178]) by mx.google.com with ESMTPS id n8si453664vdv.3.2014.01.14.08.44.46 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 14 Jan 2014 08:44:46 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.178 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.178; Received: by mail-vc0-f178.google.com with SMTP id ik5so367977vcb.37 for ; Tue, 14 Jan 2014 08:44:46 -0800 (PST) X-Received: by 10.52.76.105 with SMTP id j9mr772364vdw.52.1389717886173; Tue, 14 Jan 2014 08:44:46 -0800 (PST) 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.59.13.131 with SMTP id ey3csp214668ved; Tue, 14 Jan 2014 08:44:45 -0800 (PST) X-Received: by 10.224.114.2 with SMTP id c2mr4607742qaq.90.1389717885712; Tue, 14 Jan 2014 08:44:45 -0800 (PST) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id n9si1319405qas.135.2014.01.14.08.44.45 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 14 Jan 2014 08:44:45 -0800 (PST) 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]:49209 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W376a-0003PD-Hv for patch@linaro.org; Tue, 14 Jan 2014 11:44:44 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41128) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W375S-00027T-JF for qemu-devel@nongnu.org; Tue, 14 Jan 2014 11:43:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W375L-0001In-F1 for qemu-devel@nongnu.org; Tue, 14 Jan 2014 11:43:34 -0500 Received: from mail-we0-f176.google.com ([74.125.82.176]:41824) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W375L-0001Ie-9N for qemu-devel@nongnu.org; Tue, 14 Jan 2014 11:43:27 -0500 Received: by mail-we0-f176.google.com with SMTP id q58so650006wes.35 for ; Tue, 14 Jan 2014 08:43:26 -0800 (PST) X-Received: by 10.180.84.166 with SMTP id a6mr3856697wiz.49.1389717806542; Tue, 14 Jan 2014 08:43:26 -0800 (PST) Received: from localhost.localdomain (cpc6-seac21-2-0-cust453.7-2.cable.virginm.net. [82.1.113.198]) by mx.google.com with ESMTPSA id jw4sm971156wjc.20.2014.01.14.08.43.25 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Jan 2014 08:43:25 -0800 (PST) From: Will Newton To: qemu-devel@nongnu.org Date: Tue, 14 Jan 2014 16:43:06 +0000 Message-Id: <1389717790-30860-6-git-send-email-will.newton@linaro.org> X-Mailer: git-send-email 1.8.1.4 In-Reply-To: <1389717790-30860-1-git-send-email-will.newton@linaro.org> References: <1389717790-30860-1-git-send-email-will.newton@linaro.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 74.125.82.176 Cc: Peter Maydell Subject: [Qemu-devel] [PATCH 5/9] target-arm: Add support for AArch32 FP VRINTX 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: will.newton@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.178 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=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 Add support for the AArch32 floating-point VRINTX instruction. Signed-off-by: Will Newton --- target-arm/translate.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/target-arm/translate.c b/target-arm/translate.c index 153d0e6..5108f6b 100644 --- a/target-arm/translate.c +++ b/target-arm/translate.c @@ -3406,6 +3406,17 @@ static int disas_vfp_insn(CPUARMState * env, DisasContext *s, uint32_t insn) tcg_temp_free_ptr(fpst); } break; + case 14: /* vrintx */ + if (dp) { + TCGv_ptr fpst = get_fpstatus_ptr(0); + gen_helper_rintd_exact(cpu_F0d, cpu_F0d, fpst); + tcg_temp_free_ptr(fpst); + } else { + TCGv_ptr fpst = get_fpstatus_ptr(0); + gen_helper_rints_exact(cpu_F0s, cpu_F0s, fpst); + tcg_temp_free_ptr(fpst); + } + break; case 15: /* single<->double conversion */ if (dp) gen_helper_vfp_fcvtsd(cpu_F0s, cpu_F0d, cpu_env);