]> git.proxmox.com Git - qemu.git/commitdiff
target-arm: Make Neon helper routines use correct FP status
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 4 Apr 2011 10:46:35 +0000 (11:46 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Mon, 4 Apr 2011 18:18:07 +0000 (20:18 +0200)
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>
target-arm/neon_helper.c

index 315e69337ecb56012f33c23bbf2cfec9c610808c..c3ac96a099d06fb4279aa33019fdcc725a500f14 100644 (file)
@@ -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 \