]> asedeno.scripts.mit.edu Git - linux.git/commit
MIPS: CPS: Fix MIPS_ISA_LEVEL_RAW fallout
authorJames Hogan <jhogan@kernel.org>
Fri, 2 Feb 2018 14:36:40 +0000 (14:36 +0000)
committerJames Hogan <jhogan@kernel.org>
Mon, 5 Feb 2018 11:53:06 +0000 (11:53 +0000)
commit8dbc1864b74f5dea5a3f7c30ca8fd358a675132f
tree7152f79577384a9a8b8df118b8da3e608503957d
parentd8a5b80568a9cb66810e75b182018e9edb68e8ff
MIPS: CPS: Fix MIPS_ISA_LEVEL_RAW fallout

Commit 17278a91e04f ("MIPS: CPS: Fix r1 .set mt assembler warning")
added .set MIPS_ISA_LEVEL_RAW to silence warnings about .set mt on r1,
however this can result in a MOVE being encoded as a 64-bit DADDU
instruction on certain version of binutils (e.g. 2.22), and reserved
instruction exceptions at runtime on 32-bit hardware.

Reduce the sizes of the push/pop sections to include only instructions
that are part of the MT ASE or which won't convert to 64-bit
instructions after .set mips64r2/mips64r6.

Reported-by: Greg Ungerer <gerg@linux-m68k.org>
Fixes: 17278a91e04f ("MIPS: CPS: Fix r1 .set mt assembler warning")
Signed-off-by: James Hogan <jhogan@kernel.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Paul Burton <paul.burton@mips.com>
Cc: linux-mips@linux-mips.org
Cc: <stable@vger.kernel.org> # 4.15
Tested-by: Greg Ungerer <gerg@linux-m68k.org>
Patchwork: https://patchwork.linux-mips.org/patch/18578/
arch/mips/kernel/cps-vec.S