MIPS: Remove FIR from ISA I FP signal context
authorMaciej W. Rozycki <macro@imgtec.com>
Mon, 31 Oct 2016 16:26:24 +0000 (16:26 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 4 Nov 2016 00:38:50 +0000 (01:38 +0100)
Complement commit e50c0a8fa60d ("Support the MIPS32 / MIPS64 DSP ASE.")
and remove the Floating Point Implementation Register (FIR) from the FP
register set recorded in a signal context with MIPS I processors too, in
line with the change applied to r4k_fpu.S.

The `sc_fpc_eir' slot is unused according to our current ABI and the FIR
register is read-only and always directly accessible from user software.

[ralf@linux-mips.org: This is also required because the next commit depends
on it.]

Signed-off-by: Maciej W. Rozycki <macro@imgtec.com>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/14475/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/r2300_fpu.S

index c4c8c1b65be98354ce6dae506c94891c1ad3142c..ce249eae91ce6128ad2edd382d699f416b482047 100644 (file)
@@ -64,13 +64,9 @@ LEAF(_save_fp_context)
        EX(swc1 $f29,(SC_FPREGS+232)(a0))
        EX(swc1 $f30,(SC_FPREGS+240)(a0))
        EX(swc1 $f31,(SC_FPREGS+248)(a0))
-       EX(sw   t1,(SC_FPC_CSR)(a0))
-       cfc1    t0,$0                           # implementation/version
        jr      ra
+        EX(sw  t1,(SC_FPC_CSR)(a0))
        .set    pop
-       .set    nomacro
-        EX(sw  t0,(SC_FPC_EIR)(a0))
-       .set    macro
        END(_save_fp_context)
 
 /*