Commit 92e9953c authored by James Hogan's avatar James Hogan Committed by Ralf Baechle

MIPS: Fix MSA assembly warnings

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: default avatarJames 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: default avatarRalf Baechle <ralf@linux-mips.org>
parent 143e93d7
...@@ -235,6 +235,7 @@ ...@@ -235,6 +235,7 @@
.macro ld_b wd, off, base .macro ld_b wd, off, base
.set push .set push
.set mips32r2 .set mips32r2
.set fp=64
.set msa .set msa
ld.b $w\wd, \off(\base) ld.b $w\wd, \off(\base)
.set pop .set pop
...@@ -243,6 +244,7 @@ ...@@ -243,6 +244,7 @@
.macro ld_h wd, off, base .macro ld_h wd, off, base
.set push .set push
.set mips32r2 .set mips32r2
.set fp=64
.set msa .set msa
ld.h $w\wd, \off(\base) ld.h $w\wd, \off(\base)
.set pop .set pop
...@@ -251,6 +253,7 @@ ...@@ -251,6 +253,7 @@
.macro ld_w wd, off, base .macro ld_w wd, off, base
.set push .set push
.set mips32r2 .set mips32r2
.set fp=64
.set msa .set msa
ld.w $w\wd, \off(\base) ld.w $w\wd, \off(\base)
.set pop .set pop
...@@ -268,6 +271,7 @@ ...@@ -268,6 +271,7 @@
.macro st_b wd, off, base .macro st_b wd, off, base
.set push .set push
.set mips32r2 .set mips32r2
.set fp=64
.set msa .set msa
st.b $w\wd, \off(\base) st.b $w\wd, \off(\base)
.set pop .set pop
...@@ -276,6 +280,7 @@ ...@@ -276,6 +280,7 @@
.macro st_h wd, off, base .macro st_h wd, off, base
.set push .set push
.set mips32r2 .set mips32r2
.set fp=64
.set msa .set msa
st.h $w\wd, \off(\base) st.h $w\wd, \off(\base)
.set pop .set pop
...@@ -284,6 +289,7 @@ ...@@ -284,6 +289,7 @@
.macro st_w wd, off, base .macro st_w wd, off, base
.set push .set push
.set mips32r2 .set mips32r2
.set fp=64
.set msa .set msa
st.w $w\wd, \off(\base) st.w $w\wd, \off(\base)
.set pop .set pop
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment