1. 13 Feb, 2007 2 commits
    • Paul Mundt's avatar
      sh: Use proper SH-2A CFLAGS on newer compilers. · 702dd803
      Paul Mundt authored
      -m2 doesn't end up working particularly well when we've got a constrained
      toolchain target. Switch to the same semantics used by SH-4A to attempt
      to get it right. Spotted by Alex Song <songqf9@yahoo.ca>.
      Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
      702dd803
    • Paul Mundt's avatar
      sh: Use a jump call table for debug trap handlers. · f413d0d9
      Paul Mundt authored
      This rips out most of the needlessly complicated sh_bios and kgdb
      trap handling, and forces it all through a common fast dispatch path.
      As more debug traps are inserted, it's important to keep them in sync
      for all of the parts, not just SH-3/4.
      
      As the SH-2 parts are unable to do traps in the >= 0x40 range, we
      restrict the debug traps to the 0x30-0x3f range on all parts, and
      also bump the kgdb breakpoint trap down in to this range (from 0xff
      to 0x3c) so it's possible to use for nommu.
      
      Optionally, this table can be padded out to catch spurious traps for
      SH-3/4, but we don't do that yet..
      Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
      f413d0d9
  2. 12 Feb, 2007 38 commits