linux/arch/sh/kernel/cpu/sh4
Paul Mundt 53f983a90d sh: Fix PC adjustments for varying opcode length.
There are a few different cases for figuring out how to
size the instruction. We read in the instruction located
at regs->pc - 4 when rewinding the opcode to figure out if
there's a 32-bit opcode before the faulting instruction, with
a default of a - 2 adjustment on a mismatch. In practice this
works for the cases where pc - 4 is just another 16-bit opcode,
or we happen to have a 32-bit and a 16-bit immediately
preceeding the pc value.

In the cases where we aren't rewinding, this is much less ugly..

We also don't bother fixing up the places where we're explicitly
dealing with 16-bit instructions, since this might lead to
confusion regarding the encoding size possibilities on other
CPU variants.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2007-05-09 01:35:01 +00:00
..
clock-sh4-202.c sh: SH7722 clock framework support. 2007-05-07 02:11:56 +00:00
clock-sh4.c [PATCH] sh: Simplistic clock framework 2006-01-16 23:15:28 -08:00
fpu.c sh: Fix PC adjustments for varying opcode length. 2007-05-09 01:35:01 +00:00
Makefile sh: Share exception vector table for SH-3/4. 2007-05-09 01:35:01 +00:00
probe.c sh: Add SH7785 Highlander board support (R7785RP). 2007-05-07 02:10:53 +00:00
setup-sh4-202.c sh: Add setup code for various CPU subtypes. 2006-09-27 17:30:35 +09:00
setup-sh7750.c sh: rts7751r2d board updates. 2007-02-15 18:20:52 +09:00
setup-sh7760.c sh: add SH7760 IPR IRQ data 2007-02-13 10:54:45 +09:00
sq.c sh: Convert remaining remap_area_pages() users to ioremap_page_range(). 2006-12-12 08:42:08 +09:00