android_kernel_motorola_sm6225/arch/sh/kernel/cpu
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
..
irq sh: Solution Engine SH7705 board and CPU updates. 2007-05-07 02:11:56 +00:00
sh2 sh: Fix bogus regs pointer in do_IRQ(). 2007-03-14 13:03:35 +09:00
sh2a sh: Support for SH-2A 32-bit opcodes. 2007-05-09 01:35:01 +00:00
sh3 sh: Share exception vector table for SH-3/4. 2007-05-09 01:35:01 +00:00
sh4 sh: Fix PC adjustments for varying opcode length. 2007-05-09 01:35:01 +00:00
sh4a sh: R7785RP board updates. 2007-05-07 02:11:57 +00:00
adc.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
clock.c sh: Move clock reporting to its own proc entry. 2007-05-07 02:11:56 +00:00
init.c sh: speculative execution support for SH7780. 2007-05-07 02:10:51 +00:00
Makefile sh: SH-MobileR SH7722 CPU support. 2006-12-12 08:42:09 +09:00
ubc.S fix file specification in comments 2006-10-03 23:01:26 +02:00