diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2006-04-25 21:41:27 +0200 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2006-04-25 21:41:27 +0200 |
commit | 928bd1b4709045355fad8bf858904884c0a1e87f (patch) | |
tree | 1875af1016e3057fd25fa7441877f8a0b97cffbe /arch/arm/vfp/vfpdouble.c | |
parent | [ARM] 3484/1: Correct AEABI CFLAGS for correct enum handling (diff) | |
download | linux-928bd1b4709045355fad8bf858904884c0a1e87f.tar.xz linux-928bd1b4709045355fad8bf858904884c0a1e87f.zip |
[ARM] vfp: fix leak of VFP_NAN_FLAG into FPSCR
The VFP code can leak VFP_NAN_FLAG into the FPSCR. It doesn't correspond
to any real FPSCR bit (and overlaps one of the exception flags).
Bug report from Daniel Jacobowitz
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/vfp/vfpdouble.c')
-rw-r--r-- | arch/arm/vfp/vfpdouble.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/vfp/vfpdouble.c b/arch/arm/vfp/vfpdouble.c index febd115dba28..009038c8113e 100644 --- a/arch/arm/vfp/vfpdouble.c +++ b/arch/arm/vfp/vfpdouble.c @@ -197,7 +197,7 @@ u32 vfp_double_normaliseround(int dd, struct vfp_double *vd, u32 fpscr, u32 exce dd, d, exceptions); vfp_put_double(dd, d); } - return exceptions & ~VFP_NAN_FLAG; + return exceptions; } /* |