MIPS: Determine the presence of IEEE Std 754-2008 features
authorMaciej W. Rozycki <[email protected]>
Fri, 13 Nov 2015 00:48:15 +0000 (00:48 +0000)
committerRalf Baechle <[email protected]>
Tue, 19 Jan 2016 23:39:20 +0000 (00:39 +0100)
commit93adeaf6dadcaed943a51ad9ea2d77e24e6d70a7
tree20d520839eac15f23690c300ae5ea6f2c34f00d7
parent2b5e869ecfcb3112f7e1267cb0328f3ff6d49b18
MIPS: Determine the presence of IEEE Std 754-2008 features

Determine the presence of and the amount of control available over IEEE
Std 754-2008 features.

In the case of a hardware FPU being used examine the FIR register for
the presence of the HAS2008 bit and then the FCSR register for the
writability of the ABS2008 and NAN2008 bits and the hardwired state of
each of these bits if read-only.  Update the initial FCSR contents used
for threads and the FCSR writability mask accordingly.

For full FPU emulation and MIPS32 or MIPS64 processors make the FCSR
ABS2008 and NAN2008 bits writable.

Signed-off-by: Maciej W. Rozycki <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Matthew Fortune <[email protected]>
Cc: [email protected]
Cc: [email protected]
Patchwork: https://patchwork.linux-mips.org/patch/11480/
Signed-off-by: Ralf Baechle <[email protected]>
arch/mips/kernel/cpu-probe.c