]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
MIPS: Use copy_s.fmt rather than copy_u.fmt
authorPaul Burton <paul.burton@imgtec.com>
Fri, 15 Apr 2016 09:07:23 +0000 (10:07 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Jun 2016 01:14:31 +0000 (18:14 -0700)
commit73410f3b164cd436aaaf6a1944aab4892d7b92f2
tree1afb73817a0d4d7e3dc13e9736ea6e797eb841e2
parent1a01c8c418772bc87a182126e16eba8400eaf46a
MIPS: Use copy_s.fmt rather than copy_u.fmt

commit 8a3c8b48aca8771bff3536e40aa26ffb311699d1 upstream.

In revision 1.12 of the MSA specification, the copy_u.w instruction has
been removed for MIPS32 & the copy_u.d instruction has been removed for
MIPS64. Newer toolchains (eg. Codescape SDK essentials 2015.10) will
complain about this like so:

arch/mips/kernel/r4k_fpu.S:290: Error: opcode not supported on this
processor: mips32r2 (mips32r2) `copy_u.w $1,$w26[3]'

Since we always copy to the width of a GPR, simply use copy_s instead of
copy_u to fix this.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/13061/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/mips/include/asm/asmmacro.h
arch/mips/kernel/r4k_fpu.S