MIPS: Fix MSA assembly warnings
authorJames Hogan <james.hogan@imgtec.com>
Fri, 15 Apr 2016 09:07:26 +0000 (10:07 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 9 May 2016 10:00:05 +0000 (12:00 +0200)
Building an MSA capable kernel with a toolchain that supports MSA
produces warnings such as this:

arch/mips/kernel/r4k_fpu.S:229: Warning: the `msa' extension requires 64-bit FPRs

This is due to ".set msa" without ".set fp=64" in the non doubleword MSA
load/store macros, since MSA requires the 64-bit FPU registers (FR=1).
Add the missing fp=64 in these macros to silence the warnings.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/13063/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/asmmacro.h

index 637fccab56043e6c2d7120a72097d426e0f961a3..6741673c92cadc39abaea44dc57766fcde50a9e4 100644 (file)
        .macro  ld_b    wd, off, base
        .set    push
        .set    mips32r2
+       .set    fp=64
        .set    msa
        ld.b    $w\wd, \off(\base)
        .set    pop
        .macro  ld_h    wd, off, base
        .set    push
        .set    mips32r2
+       .set    fp=64
        .set    msa
        ld.h    $w\wd, \off(\base)
        .set    pop
        .macro  ld_w    wd, off, base
        .set    push
        .set    mips32r2
+       .set    fp=64
        .set    msa
        ld.w    $w\wd, \off(\base)
        .set    pop
        .macro  st_b    wd, off, base
        .set    push
        .set    mips32r2
+       .set    fp=64
        .set    msa
        st.b    $w\wd, \off(\base)
        .set    pop
        .macro  st_h    wd, off, base
        .set    push
        .set    mips32r2
+       .set    fp=64
        .set    msa
        st.h    $w\wd, \off(\base)
        .set    pop
        .macro  st_w    wd, off, base
        .set    push
        .set    mips32r2
+       .set    fp=64
        .set    msa
        st.w    $w\wd, \off(\base)
        .set    pop
This page took 0.025093 seconds and 5 git commands to generate.