sh: Make sure rte delay slots are nopped out on all parts.
authorPaul Mundt <lethal@linux-sh.org>
Fri, 14 Aug 2009 22:41:45 +0000 (07:41 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Fri, 14 Aug 2009 22:41:45 +0000 (07:41 +0900)
Future SH parts do not support any instruction but a nop in the rte delay
slot, so make the change for all offending parts. SH-5 is excluded from
this, and already has its own set of restrictions with regards to rte
delay slot handling.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/cpu/sh2/entry.S
arch/sh/kernel/cpu/sh2a/entry.S

index becc54c456924077d45053ab4e0a3f22a1300e8e..c8a4331d9b8d7398e98df914178bb6ed4aed1eb9 100644 (file)
@@ -227,8 +227,9 @@ ENTRY(sh_bios_handler)
        mov.l   @r15+, r14
        add     #8,r15
        lds.l   @r15+, pr
+       mov.l   @r15+,r15
        rte
-        mov.l  @r15+,r15
+        nop
        .align  2
 1:     .long   gdb_vbr_vector
 #endif /* CONFIG_SH_STANDARD_BIOS */
index ab3903eeda5cac2b19e79956a129fb3e3c4bd861..222742ddc0d6a656ae16b3e5eb9ae5ba0ddb3691 100644 (file)
@@ -176,8 +176,9 @@ ENTRY(sh_bios_handler)
        movml.l @r15+,r14
        add     #8,r15
        lds.l   @r15+, pr
+       mov.l   @r15+,r15
        rte
-        mov.l  @r15+,r15
+        nop
        .align  2
 1:     .long   gdb_vbr_vector
 #endif /* CONFIG_SH_STANDARD_BIOS */