From patchwork Tue Jan 28 11:22:29 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Newton X-Patchwork-Id: 23781 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f199.google.com (mail-qc0-f199.google.com [209.85.216.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 18BBB202FA for ; Tue, 28 Jan 2014 11:22:51 +0000 (UTC) Received: by mail-qc0-f199.google.com with SMTP id m20sf479384qcx.2 for ; Tue, 28 Jan 2014 03:22:50 -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:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=+lc7Yp3I4UcTh89hEZpfdJABw+E6YxEW7C2ZANPI+p0=; b=cAHephJMphzl0Wq5weU22RBf0yATmi3sF4jnRHKqjWrY2Dw1rGkzqJmLj+CK/yg3Nl DlpDZNlzpeEm1YVHKKBroEPsxfkR0qN8FtSNES9CwFWgIgf5mHK8PQvJrYypXQluM7UI 7R80QjVDRUgnKjnO/1zDQa9FhQInHC3rfCRQo/JRMkOFK/ACHnmh1ahRpVbw5k7MsXmW luZobcPY8rE31RYrphhafvlH3r/3gng7c83SSFADxFf2fChPFKmSZ/FOjisnDRlqEfp0 NEYyIImtYNfBmjYgMSmCxTspa5njJFwqyGO8K9JTVr498kCovpdG0s4Iex4A15tKofng wXxA== X-Gm-Message-State: ALoCoQmB1odGbrnphVv0yQz7utADsvbcO9jFoH9jT/uyQRIpjzDBPUsuIBhgvmbVww1O7Nbx1nWV X-Received: by 10.58.218.40 with SMTP id pd8mr2880936vec.39.1390908170341; Tue, 28 Jan 2014 03:22:50 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.37.135 with SMTP id r7ls2062223qgr.25.gmail; Tue, 28 Jan 2014 03:22:50 -0800 (PST) X-Received: by 10.58.90.202 with SMTP id by10mr596757veb.6.1390908170129; Tue, 28 Jan 2014 03:22:50 -0800 (PST) Received: from mail-vc0-f180.google.com (mail-vc0-f180.google.com [209.85.220.180]) by mx.google.com with ESMTPS id dq5si6254871vcb.24.2014.01.28.03.22.50 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 28 Jan 2014 03:22:50 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.180 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.180; Received: by mail-vc0-f180.google.com with SMTP id ks9so151840vcb.11 for ; Tue, 28 Jan 2014 03:22:50 -0800 (PST) X-Received: by 10.58.119.161 with SMTP id kv1mr582834veb.21.1390908169924; Tue, 28 Jan 2014 03:22:49 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp22914vcz; Tue, 28 Jan 2014 03:22:49 -0800 (PST) X-Received: by 10.152.120.231 with SMTP id lf7mr619149lab.36.1390908168957; Tue, 28 Jan 2014 03:22:48 -0800 (PST) Received: from mail-lb0-f177.google.com (mail-lb0-f177.google.com [209.85.217.177]) by mx.google.com with ESMTPS id mq2si3878000lbb.32.2014.01.28.03.22.48 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 28 Jan 2014 03:22:48 -0800 (PST) Received-SPF: neutral (google.com: 209.85.217.177 is neither permitted nor denied by best guess record for domain of will.newton@linaro.org) client-ip=209.85.217.177; Received: by mail-lb0-f177.google.com with SMTP id z5so196373lbh.22 for ; Tue, 28 Jan 2014 03:22:48 -0800 (PST) X-Received: by 10.112.158.131 with SMTP id wu3mr597844lbb.6.1390908168369; Tue, 28 Jan 2014 03:22:48 -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 a8sm22366424lae.5.2014.01.28.03.22.46 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Jan 2014 03:22:47 -0800 (PST) From: Will Newton To: qemu-devel@nongnu.org Cc: Peter Maydell , patches@linaro.org Subject: [PATCH v2 05/11] target-arm: Add support for AArch32 FP VRINTX Date: Tue, 28 Jan 2014 11:22:29 +0000 Message-Id: <1390908155-23475-5-git-send-email-will.newton@linaro.org> X-Mailer: git-send-email 1.8.1.4 In-Reply-To: <1390908155-23475-1-git-send-email-will.newton@linaro.org> References: <1390908155-23475-1-git-send-email-will.newton@linaro.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.180 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 Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Add support for the AArch32 floating-point VRINTX instruction. Signed-off-by: Will Newton --- target-arm/translate.c | 11 +++++++++++ 1 file changed, 11 insertions(+) Changes in v2: - Move code outside the arms of the if diff --git a/target-arm/translate.c b/target-arm/translate.c index 9afb19f..9eb5b92 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 */ + { + TCGv_ptr fpst = get_fpstatus_ptr(0); + if (dp) { + gen_helper_rintd_exact(cpu_F0d, cpu_F0d, fpst); + } else { + 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);