• Maciej W. Rozycki's avatar
    MIPS: Determine the presence of IEEE Std 754-2008 features · 93adeaf6
    Maciej W. Rozycki authored
    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: default avatarMaciej W. Rozycki <macro@imgtec.com>
    Cc: Andrew Morton <akpm@linux-foundation.org>
    Cc: Matthew Fortune <Matthew.Fortune@imgtec.com>
    Cc: linux-mips@linux-mips.org
    Cc: linux-kernel@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/11480/Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
    93adeaf6
cpu-probe.c 40.1 KB