From patchwork Tue Jan 14 16:43:05 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Newton X-Patchwork-Id: 23193 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qe0-f71.google.com (mail-qe0-f71.google.com [209.85.128.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id AB5412066C for ; Tue, 14 Jan 2014 16:46:14 +0000 (UTC) Received: by mail-qe0-f71.google.com with SMTP id 8sf4125347qea.10 for ; Tue, 14 Jan 2014 08:46:13 -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=bGAfz+MrTo1tk8dNJhYSbiaICVseBA67Ot3F2C4YO7c=; b=CeKSg7S6XfhwE/K1gJi12x/s36KNQ1Z4oT3r3rfVPFEun1DkAb50idIdKajMohqW1G 4ajAus9/rMEViC8mgkJ4vahlLYDA17h6zHIoCKhiQem/bb93bU72j0mCtvlAGFQB9faJ pCrJiZwGl8y/b4BDx8unjSWRtLLqJDMXz1e3wFbRM5Flx7cPy9IQFZms7/vtv//17kXn QlcR2Uc5zaDxX3Y6rvP2Jl3OeCnIDl+X5Ztzrsd7eFoMk9ezzxmq3Fqx/8K6pnwlzI3v x7MQO3dbCIBp4Hb7LC7Gz10yMLNJQgD2RlFaM3s3FcDCrdUsn+CGS69d7sdLVMHB23Rx G9Qw== X-Gm-Message-State: ALoCoQmFZAR57qWZywoTDOonMaTdcWFvFX48VEKnZeOSTFUoCIklI8AcHpTTQNAorj3K40WJ6Hxr X-Received: by 10.236.133.82 with SMTP id p58mr9738783yhi.37.1389717973919; Tue, 14 Jan 2014 08:46:13 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.72.66 with SMTP id b2ls200215qev.36.gmail; Tue, 14 Jan 2014 08:46:13 -0800 (PST) X-Received: by 10.52.24.101 with SMTP id t5mr494859vdf.79.1389717973820; Tue, 14 Jan 2014 08:46:13 -0800 (PST) Received: from mail-vc0-f174.google.com (mail-vc0-f174.google.com [209.85.220.174]) by mx.google.com with ESMTPS id b20si440530veu.98.2014.01.14.08.46.13 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 14 Jan 2014 08:46:13 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.174 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.174; Received: by mail-vc0-f174.google.com with SMTP id im17so360914vcb.5 for ; Tue, 14 Jan 2014 08:46:13 -0800 (PST) X-Received: by 10.52.76.105 with SMTP id j9mr774172vdw.52.1389717973734; Tue, 14 Jan 2014 08:46:13 -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 ey3csp214784ved; Tue, 14 Jan 2014 08:46:13 -0800 (PST) X-Received: by 10.224.26.143 with SMTP id e15mr4603903qac.3.1389717973111; Tue, 14 Jan 2014 08:46:13 -0800 (PST) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id e4si1371345qas.25.2014.01.14.08.46.12 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 14 Jan 2014 08:46:13 -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]:49227 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3780-0005Pc-Kk for patch@linaro.org; Tue, 14 Jan 2014 11:46:12 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41112) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W375S-00027M-0S for qemu-devel@nongnu.org; Tue, 14 Jan 2014 11:43:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W375K-0001IY-6Z for qemu-devel@nongnu.org; Tue, 14 Jan 2014 11:43:33 -0500 Received: from mail-wg0-f48.google.com ([74.125.82.48]:49793) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W375K-0001IP-0E for qemu-devel@nongnu.org; Tue, 14 Jan 2014 11:43:26 -0500 Received: by mail-wg0-f48.google.com with SMTP id x13so639513wgg.27 for ; Tue, 14 Jan 2014 08:43:25 -0800 (PST) X-Received: by 10.180.94.67 with SMTP id da3mr3971596wib.38.1389717805272; Tue, 14 Jan 2014 08:43:25 -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.23 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Jan 2014 08:43:24 -0800 (PST) From: Will Newton To: qemu-devel@nongnu.org Date: Tue, 14 Jan 2014 16:43:05 +0000 Message-Id: <1389717790-30860-5-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.48 Cc: Peter Maydell Subject: [Qemu-devel] [PATCH 4/9] target-arm: Add support for AArch32 FP VRINTZ 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.174 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 VRINTZ instruction. Signed-off-by: Will Newton --- target-arm/translate.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/target-arm/translate.c b/target-arm/translate.c index 73e0e8d..153d0e6 100644 --- a/target-arm/translate.c +++ b/target-arm/translate.c @@ -3385,6 +3385,27 @@ static int disas_vfp_insn(CPUARMState * env, DisasContext *s, uint32_t insn) tcg_temp_free_ptr(fpst); } break; + case 13: /* vrintz */ + if (dp) { + TCGv_ptr fpst = get_fpstatus_ptr(0); + TCGv_i32 tcg_rmode; + tcg_rmode = tcg_const_i32(float_round_to_zero); + gen_helper_set_rmode(tcg_rmode, tcg_rmode, cpu_env); + gen_helper_rintd(cpu_F0d, cpu_F0d, fpst); + gen_helper_set_rmode(tcg_rmode, tcg_rmode, cpu_env); + tcg_temp_free_i32(tcg_rmode); + tcg_temp_free_ptr(fpst); + } else { + TCGv_ptr fpst = get_fpstatus_ptr(0); + TCGv_i32 tcg_rmode; + tcg_rmode = tcg_const_i32(float_round_to_zero); + gen_helper_set_rmode(tcg_rmode, tcg_rmode, cpu_env); + gen_helper_rints(cpu_F0s, cpu_F0s, fpst); + gen_helper_set_rmode(tcg_rmode, tcg_rmode, cpu_env); + tcg_temp_free_i32(tcg_rmode); + tcg_temp_free_ptr(fpst); + } + break; case 15: /* single<->double conversion */ if (dp) gen_helper_vfp_fcvtsd(cpu_F0s, cpu_F0d, cpu_env);