Skip to content

Commit

Permalink
target-arm: Make Neon helper routines use correct FP status
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Aurelien Jarno <[email protected]>
  • Loading branch information
pm215 authored and aurel32 committed Apr 4, 2011
1 parent 947a2fa commit cc49f21
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions target-arm/neon_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit cc49f21

Please sign in to comment.