aboutsummaryrefslogtreecommitdiff
path: root/target-arm/neon_helper.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2011-04-04 11:46:35 +0100
committerAurelien Jarno <aurelien@aurel32.net>2011-04-04 20:18:07 +0200
commitcc49f2178041d5754368d4b62cb56b735aafbe9f (patch)
treef8297c121717679b46299d886ab6c44d6faf145b /target-arm/neon_helper.c
parent947a2fa21b61703802a660a938cabd7b3600ee79 (diff)
target-arm: Make Neon helper routines use correct FP status
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> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'target-arm/neon_helper.c')
-rw-r--r--target-arm/neon_helper.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/target-arm/neon_helper.c b/target-arm/neon_helper.c
index 315e69337e..c3ac96a099 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 \