[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>
This commit is contained in:
committed by
Russell King
parent
c7fd84424f
commit
928bd1b470
@@ -203,7 +203,7 @@ u32 vfp_single_normaliseround(int sd, struct vfp_single *vs, u32 fpscr, u32 exce
|
||||
vfp_put_float(sd, d);
|
||||
}
|
||||
|
||||
return exceptions & ~VFP_NAN_FLAG;
|
||||
return exceptions;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user