+2004-03-12 Kevin Buettner <kevinb@redhat.com>
+
+ * frv-tdep.c (set_variant_scratch_registers): New function.
+ (frv_gdbarch_init): Add FR450 support.
+ * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
+ New constants.
+
2004-03-12 Kevin Buettner <kevinb@redhat.com>
* frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
var->register_names[fdpic_loadmap_interp_regnum] = xstrdup ("loadmap_interp");
}
+static void
+set_variant_scratch_registers (struct gdbarch_tdep *var)
+{
+ var->register_names[scr0_regnum] = xstrdup ("scr0");
+ var->register_names[scr1_regnum] = xstrdup ("scr1");
+ var->register_names[scr2_regnum] = xstrdup ("scr2");
+ var->register_names[scr3_regnum] = xstrdup ("scr3");
+}
+
static const char *
frv_register_name (int reg)
{
break;
case bfd_mach_fr400:
+ case bfd_mach_fr450:
set_variant_num_gprs (var, 32);
set_variant_num_fprs (var, 32);
break;
if (elf_flags & EF_FRV_FDPIC)
set_variant_abi_fdpic (var);
+ if (elf_flags & EF_FRV_CPU_FR450)
+ set_variant_scratch_registers (var);
+
gdbarch = gdbarch_alloc (&info, var);
set_gdbarch_short_bit (gdbarch, 16);
break;
case bfd_mach_fr400:
+ case bfd_mach_fr450:
/* fr400-style hardware debugging support. */
var->num_hw_watchpoints = 2;
var->num_hw_breakpoints = 4;