From patchwork Tue Jan 28 11:22:27 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Newton X-Patchwork-Id: 23779 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f197.google.com (mail-vc0-f197.google.com [209.85.220.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 74B14202FA for ; Tue, 28 Jan 2014 11:22:47 +0000 (UTC) Received: by mail-vc0-f197.google.com with SMTP id hq11sf490722vcb.0 for ; Tue, 28 Jan 2014 03:22: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: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=6YIZFqB+3b3P9RT+E18yWNQe9Hq/L2bPX4IaGvqQYcw=; b=iQ2gzKZdKv/TnDVMSVyuK9XvM5nz2hc+NdywddFBqhL+6ePAMbFnxxmAwEADbm78uW 2vNRduhQ9h9cF4uQ8A2CzLcQKlIBHRd1WJhoks+kKM1LpSvycohp1x61S4aXTGsK5E7R MS/J2B4xjzvDi+hEbRJVTfn/WOJjVOAmFHaS6+kXBngRpPILw/DJ4nXwukPDeUBqLjTS A+LM1mg0ive11UeuG8s5Qek2g1KW1HlDo0SAvOxluVqnIMvvjmIDWLzw1IYnG4IdFXSQ T7A1kYrJF6V2L3X8w2lYiJCVk6HZhR2bbsU2QxxQ0Q3DIOU5TP8Hryd5Exppp2x0cstv 1PZg== X-Gm-Message-State: ALoCoQl+k8sw3hYTu98SKWsCSY3vbOacgk9ZljpYzS1EkLyV4gxC9rD1V+RquU5JrNXDxpdg4Ufo X-Received: by 10.224.55.19 with SMTP id s19mr334329qag.0.1390908166665; Tue, 28 Jan 2014 03:22:46 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.34.235 with SMTP id l98ls1961201qgl.90.gmail; Tue, 28 Jan 2014 03:22:46 -0800 (PST) X-Received: by 10.52.163.65 with SMTP id yg1mr524391vdb.14.1390908166569; Tue, 28 Jan 2014 03:22:46 -0800 (PST) Received: from mail-vb0-f48.google.com (mail-vb0-f48.google.com [209.85.212.48]) by mx.google.com with ESMTPS id sq4si506162vdc.132.2014.01.28.03.22.46 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 28 Jan 2014 03:22:46 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.48 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.48; Received: by mail-vb0-f48.google.com with SMTP id q16so142451vbe.21 for ; Tue, 28 Jan 2014 03:22:46 -0800 (PST) X-Received: by 10.58.181.165 with SMTP id dx5mr565274vec.19.1390908166476; Tue, 28 Jan 2014 03:22:46 -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 u4csp22912vcz; Tue, 28 Jan 2014 03:22:46 -0800 (PST) X-Received: by 10.152.87.169 with SMTP id az9mr616758lab.32.1390908165515; Tue, 28 Jan 2014 03:22:45 -0800 (PST) Received: from mail-la0-f51.google.com (mail-la0-f51.google.com [209.85.215.51]) by mx.google.com with ESMTPS id ya3si6641641lbb.71.2014.01.28.03.22.45 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 28 Jan 2014 03:22:45 -0800 (PST) Received-SPF: neutral (google.com: 209.85.215.51 is neither permitted nor denied by best guess record for domain of will.newton@linaro.org) client-ip=209.85.215.51; Received: by mail-la0-f51.google.com with SMTP id c6so194412lan.24 for ; Tue, 28 Jan 2014 03:22:45 -0800 (PST) X-Received: by 10.152.87.142 with SMTP id ay14mr576454lab.7.1390908164938; Tue, 28 Jan 2014 03:22:44 -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.43 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Jan 2014 03:22:44 -0800 (PST) From: Will Newton To: qemu-devel@nongnu.org Cc: Peter Maydell , patches@linaro.org Subject: [PATCH v2 03/11] target-arm: Add support for AArch32 FP VRINTR Date: Tue, 28 Jan 2014 11:22:27 +0000 Message-Id: <1390908155-23475-3-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.212.48 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 VRINTR 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 2db6812..2b3157c 100644 --- a/target-arm/translate.c +++ b/target-arm/translate.c @@ -3379,6 +3379,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 */ + { + TCGv_ptr fpst = get_fpstatus_ptr(0); + if (dp) { + gen_helper_rintd(cpu_F0d, cpu_F0d, fpst); + } else { + 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);