sh: delay slot future proofing via EXPMASK on SH-4A parts.
commit7dd6662a92fe9a15ad565045aa60367995cc533d
authorPaul Mundt <lethal@linux-sh.org>
Fri, 14 Aug 2009 22:43:21 +0000 (15 07:43 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Fri, 14 Aug 2009 22:43:21 +0000 (15 07:43 +0900)
tree980dfdc46083e005380e545ec400089841bb0a92
parent7a90e00dda0bae66b5232d5a37155f13a0581369
sh: delay slot future proofing via EXPMASK on SH-4A parts.

This implements EXPMASK initialization code for SH-4A parts, where it is
possible to disable compat features that will go away in newer cores.
Presently this includes disabling support for non-nop instructions in the
rte delay slot, as well as a sleep instruction being placed in a delay
slot (neither of which the kernel does any longer). As a result of this,
any future offenders will have illegal slot exceptions generated for
them.

Associative writes for the memory-mapped cache array are still left
enabled, until such a point that special cache operations for SH-4A are
provided to move off of the current (and rather dated) SH-4 versions.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/cpu/init.c