]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Add missing VZ accessor microMIPS encodings
authorJames Hogan <james.hogan@imgtec.com>
Fri, 20 May 2016 22:28:38 +0000 (23:28 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Sat, 28 May 2016 10:35:10 +0000 (12:35 +0200)
commit2facfd208b23e92b6dd2081f27b270ca67e424eb
treef4598c46e110730ebcd864bab6622e222fa3b2e2
parentae9696d5505970f86d6021fb702052d3fbb6e64e
MIPS: Add missing VZ accessor microMIPS encodings

Toolchains may be used which support microMIPS but not VZ instructions
(i.e. binutis 2.22 & 2.23), so extend the explicitly encoded versions of
the guest COP0 register & guest TLB access macros to support microMIPS
encodings too, using the new macros.

This prevents non-microMIPS instructions being executed in microMIPS
mode during CPU probe on cores supporting VZ (e.g. M5150), which cause
reserved instruction exceptions early during boot.

Fixes: 3a6a8879a9c3 ("MIPS: Fix VZ probe gas errors with binutils <2.24")
Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/13311/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/mipsregs.h