From patchwork Mon Apr 4 10:46:35 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 89609 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 2F8ADB6F01 for ; Mon, 4 Apr 2011 20:48:37 +1000 (EST) Received: from localhost ([127.0.0.1]:36264 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q6hKd-0005Rk-CP for incoming@patchwork.ozlabs.org; Mon, 04 Apr 2011 06:48:27 -0400 Received: from [140.186.70.92] (port=43541 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q6hJ3-0005Qk-Gh for qemu-devel@nongnu.org; Mon, 04 Apr 2011 06:46:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q6hJ1-00008i-IQ for qemu-devel@nongnu.org; Mon, 04 Apr 2011 06:46:48 -0400 Received: from mnementh.archaic.org.uk ([81.2.115.146]:56698) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q6hJ1-0008Vq-Az for qemu-devel@nongnu.org; Mon, 04 Apr 2011 06:46:47 -0400 Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.72) (envelope-from ) id 1Q6hIp-0000ez-9Q; Mon, 04 Apr 2011 11:46:35 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Date: Mon, 4 Apr 2011 11:46:35 +0100 Message-Id: <1301913995-2506-5-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1301913995-2506-1-git-send-email-peter.maydell@linaro.org> References: <1301913995-2506-1-git-send-email-peter.maydell@linaro.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 81.2.115.146 Cc: Blue Swirl , Aurelien Jarno Subject: [Qemu-devel] [PATCH 4/4] target-arm: Make Neon helper routines use correct FP status X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Make the Neon helper routines use the correct FP status from the CPUEnv rather than using a dummy static one. This means they will correctly handle denormals and NaNs and will set FPSCR exception bits properly. Signed-off-by: Peter Maydell --- target-arm/neon_helper.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/target-arm/neon_helper.c b/target-arm/neon_helper.c index 315e693..c3ac96a 100644 --- a/target-arm/neon_helper.c +++ b/target-arm/neon_helper.c @@ -18,8 +18,7 @@ #define SET_QC() env->vfp.xregs[ARM_VFP_FPSCR] = CPSR_Q -static float_status neon_float_status; -#define NFS &neon_float_status +#define NFS (&env->vfp.standard_fp_status) #define NEON_TYPE1(name, type) \ typedef struct \