Revision 1c48a177351ba8cbf6871f035496fce0e11d8fa3 authored by James Hogan on 20 May 2016, 22:28:38 UTC, committed by Ralf Baechle on 28 May 2016, 10:35:10 UTC
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: bad50d79255a ("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>
1 parent 0dfa1c1
History
File Mode Size
Kconfig -rw-r--r-- 1.9 KB
Makefile -rw-r--r-- 272 bytes
ftrace.c -rw-r--r-- 3.4 KB
inode.c -rw-r--r-- 11.0 KB
internal.h -rw-r--r-- 1.5 KB
platform.c -rw-r--r-- 13.5 KB
pmsg.c -rw-r--r-- 2.7 KB
ram.c -rw-r--r-- 17.2 KB
ram_core.c -rw-r--r-- 13.0 KB

back to top