Not part of the sources
[deliverable/binutils-gdb.git] / gdb / sh-tdep.c
index 226ca2fe5adf60cdb264eeca915fd55417fa2c5c..dd94506ab44075eba12653d0a94adcc713ffdfef 100644 (file)
@@ -96,7 +96,6 @@ struct {
   { sh_reg_names, bfd_mach_sh },
   { sh3_reg_names, bfd_mach_sh3 },
   { sh3e_reg_names, bfd_mach_sh3e },
-  { sh3e_reg_names, bfd_mach_sh4 },
   { NULL, 0 }
 };
 
@@ -612,6 +611,7 @@ sh_target_architecture_hook (ap)
       if (sh_processor_type_table[i].mach == ap->mach)
        {
          sh_register_names = sh_processor_type_table[i].regnames;
+         return 1;
        }
     }
 
@@ -630,9 +630,6 @@ sh_show_regs (args, from_tty)
     cpu = TARGET_ARCHITECTURE->mach;
   else
     cpu = 0;
-  /* FIXME: sh4 has more registers */
-  if (cpu == bfd_mach_sh4)
-    cpu = bfd_mach_sh3;
 
   printf_filtered ("PC=%08x SR=%08x PR=%08x MACH=%08x MACHL=%08x\n",
                   read_register (PC_REGNUM),
This page took 0.024466 seconds and 4 git commands to generate.