From: Peter Maydell <peter.maydell@linaro.org>
To: qemu-devel@nongnu.org
Cc: Blue Swirl <blauwirbel@gmail.com>, Aurelien Jarno <aurelien@aurel32.net>
Subject: [Qemu-devel] [PATCH 4/4] target-arm: Make Neon helper routines use correct FP status
Date: Mon, 4 Apr 2011 11:46:35 +0100 [thread overview]
Message-ID: <1301913995-2506-5-git-send-email-peter.maydell@linaro.org> (raw)
In-Reply-To: <1301913995-2506-1-git-send-email-peter.maydell@linaro.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 <peter.maydell@linaro.org>
---
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 \
--
1.7.1
next prev parent reply other threads:[~2011-04-04 10:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-04 10:46 [Qemu-devel] [PATCH 0/4] target-arm: Make Neon helpers use correct FP status Peter Maydell
2011-04-04 10:46 ` [Qemu-devel] [PATCH 1/4] Makefile.target: Allow target helpers to be in any *_helper.c file Peter Maydell
2011-04-04 10:46 ` [Qemu-devel] [PATCH 2/4] target-arm: Use global env in neon_helper.c helpers Peter Maydell
2011-04-04 10:46 ` [Qemu-devel] [PATCH 3/4] target-arm: Use global env in iwmmxt_helper.c helpers Peter Maydell
2011-04-04 10:46 ` Peter Maydell [this message]
2011-04-04 18:29 ` [Qemu-devel] Re: [PATCH 0/4] target-arm: Make Neon helpers use correct FP status Aurelien Jarno
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1301913995-2506-5-git-send-email-peter.maydell@linaro.org \
--to=peter.maydell@linaro.org \
--cc=aurelien@aurel32.net \
--cc=blauwirbel@gmail.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).