MIPS: Use FPU_CSR_ALL_X' in __build_clear_fpe'

Replace a hardcoded numeric bitmask for FCSR cause bits with
`FPU_CSR_ALL_X' in `__build_clear_fpe'.

Signed-off-by: Maciej W. Rozycki <macro@linux-mips.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/9684/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
Maciej W. Rozycki 2015-04-03 23:25:14 +01:00 committed by Ralf Baechle
parent 27e28e8ec4
commit 1f6d2c29b0

View file

@ -360,7 +360,7 @@ NESTED(nmi_handler, PT_SIZE, sp)
.set mips1
SET_HARDFLOAT
cfc1 a1, fcr31
li a2, ~(0x3f << 12)
li a2, ~FPU_CSR_ALL_X
and a2, a1
ctc1 a2, fcr31
.set pop