Commit 6c0602b8 authored by Kieran Bingham's avatar Kieran Bingham Committed by Paul Mundt

sh: Fix up the address error exception handler for SH-2.

Presently the SH-2/SH-2A address error exception dispatch copies off the
register state from the stack and skips over the first register, skewing
the rest. Fix up the math here so that the proper register state is
handed down to the exception handler itself.
Signed-off-by: default avatarKieran Bingham <kbingham@mpc-data.co.uk>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent cae167d3
...@@ -267,7 +267,6 @@ ENTRY(sh_bios_handler) ...@@ -267,7 +267,6 @@ ENTRY(sh_bios_handler)
ENTRY(address_error_trap_handler) ENTRY(address_error_trap_handler)
mov r15,r4 ! regs mov r15,r4 ! regs
add #4,r4
mov #OFF_PC,r0 mov #OFF_PC,r0
mov.l @(r0,r15),r6 ! pc mov.l @(r0,r15),r6 ! pc
mov.l 1f,r0 mov.l 1f,r0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment