MIPS: Fix MSA asm warnings in control reg accessors
authorJames Hogan <james.hogan@imgtec.com>
Thu, 9 Jun 2016 12:13:04 +0000 (13:13 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Sun, 24 Jul 2016 10:45:00 +0000 (12:45 +0200)
commite9cbf6299e306d6f2ff7b8fe7ac66059191b182f
tree1a7e6a638abfd2e80281817b3a84c0e3752c218a
parent7bf0d5e8e643a05de2cca699ac29903b19010cc1
MIPS: Fix MSA asm warnings in control reg accessors

Building an MSA capable kernel with a toolchain that supports MSA
produces warnings such as this:

  CC      arch/mips/kernel/cpu-probe.o
{standard input}: Assembler messages:
{standard input}:4786: Warning: the `msa' extension requires 64-bit FPRs

This is due to ".set msa" without ".set fp=64" in the inline assembly of
control register accessors, since MSA requires the 64-bit FPU registers
(FR=1). Add the missing fp=64 in these functions 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/13554/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/msa.h