From patchwork Tue Jan 14 16:43:04 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Newton X-Patchwork-Id: 23191 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-gg0-f197.google.com (mail-gg0-f197.google.com [209.85.161.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3F7AF2066C for ; Tue, 14 Jan 2014 16:44:45 +0000 (UTC) Received: by mail-gg0-f197.google.com with SMTP id q3sf783643gge.0 for ; Tue, 14 Jan 2014 08:44:44 -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=5Jd3npvzuU5W0hh1OMfAzhTraB98+g75FBhbKUPXBeI=; b=BfZiMciiMWbUIUiDOsriBfJRVqWChW1CkpVIIB6Obl0k+0GG7EL46VVCkH+71oR7kS Zs0QZ9keJBRlCup1Qg0lqa2Kh7mn4qGrd5APmNhcbMsPQrOaSwh8QbTiaWQD7PY2tYK3 hWIvTgeBj0usgyX/IpkYTjTlIX5Iv1fcJB4lIt5lKpiZ8s6PryxUGHD1pRXnarJ1z7PN UHbnNrEhcVfYi1vJiImAY4x612WcEDmEy6oLaYliyHzgHVMYWPCbAJClKbJYLGBfVO5j g8zb9F6LL7vS8UyC5tqGUfsBjbcxQuxxk4hwY5+KKOI03z0N5I1iA/H77vGrD/n1mc5h wMeg== X-Gm-Message-State: ALoCoQmt0q91X10d/EmmdSCZ4DTiUPap+sFp3eT4oKAk9PEKIxbueB2qZGQ9A6tgguPv7iSqeoBT X-Received: by 10.224.38.206 with SMTP id c14mr917115qae.4.1389717884365; Tue, 14 Jan 2014 08:44:44 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.50.196 with SMTP id e4ls195263qeo.3.gmail; Tue, 14 Jan 2014 08:44:44 -0800 (PST) X-Received: by 10.58.208.130 with SMTP id me2mr21667373vec.13.1389717884278; Tue, 14 Jan 2014 08:44:44 -0800 (PST) Received: from mail-vc0-f176.google.com (mail-vc0-f176.google.com [209.85.220.176]) by mx.google.com with ESMTPS id c5si430759vco.144.2014.01.14.08.44.44 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 14 Jan 2014 08:44:44 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.176 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.176; Received: by mail-vc0-f176.google.com with SMTP id la4so368952vcb.35 for ; Tue, 14 Jan 2014 08:44:44 -0800 (PST) X-Received: by 10.52.117.115 with SMTP id kd19mr1050625vdb.15.1389717884210; Tue, 14 Jan 2014 08:44:44 -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 ey3csp214667ved; Tue, 14 Jan 2014 08:44:43 -0800 (PST) X-Received: by 10.224.122.206 with SMTP id m14mr4562776qar.28.1389717883790; Tue, 14 Jan 2014 08:44:43 -0800 (PST) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id u9si1353202qap.58.2014.01.14.08.44.43 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 14 Jan 2014 08:44:43 -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]:49208 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W376Z-0003NE-2m for patch@linaro.org; Tue, 14 Jan 2014 11:44:43 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41100) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W375R-00027K-Dh 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 1W375I-0001IE-MS for qemu-devel@nongnu.org; Tue, 14 Jan 2014 11:43:33 -0500 Received: from mail-wi0-f171.google.com ([209.85.212.171]:35957) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W375I-0001IA-Gs for qemu-devel@nongnu.org; Tue, 14 Jan 2014 11:43:24 -0500 Received: by mail-wi0-f171.google.com with SMTP id cc10so2845323wib.4 for ; Tue, 14 Jan 2014 08:43:23 -0800 (PST) X-Received: by 10.194.90.144 with SMTP id bw16mr28027953wjb.1.1389717803761; Tue, 14 Jan 2014 08:43:23 -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.22 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Jan 2014 08:43:22 -0800 (PST) From: Will Newton To: qemu-devel@nongnu.org Date: Tue, 14 Jan 2014 16:43:04 +0000 Message-Id: <1389717790-30860-4-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: 209.85.212.171 Cc: Peter Maydell Subject: [Qemu-devel] [PATCH 3/9] target-arm: Add support for AArch32 FP VRINTR 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.176 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 VRINTR 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 f688f6d..73e0e8d 100644 --- a/target-arm/translate.c +++ b/target-arm/translate.c @@ -3374,6 +3374,17 @@ static int disas_vfp_insn(CPUARMState * env, DisasContext *s, uint32_t insn) gen_vfp_F1_ld0(dp); gen_vfp_cmpe(dp); break; + case 12: /* vrintr */ + if (dp) { + TCGv_ptr fpst = get_fpstatus_ptr(0); + gen_helper_rintd(cpu_F0d, cpu_F0d, fpst); + tcg_temp_free_ptr(fpst); + } else { + TCGv_ptr fpst = get_fpstatus_ptr(0); + gen_helper_rints(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);