From 76cd2bd94e1514aea5d9f8fbc4f9c0b1eb1c030c Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Tue, 17 Feb 2004 16:04:19 +0000 Subject: [PATCH] * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM. * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM. --- gdb/ChangeLog | 6 ++++++ gdb/sh-tdep.c | 4 ++-- gdb/sh-tdep.h | 4 ++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c2767d0b81e..98150d45028 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2004-02-17 Corinna Vinschen + + * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM. + * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to + DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM. + 2004-02-17 Andrew Cagney * symtab.c (skip_prologue_using_sal): New function. diff --git a/gdb/sh-tdep.c b/gdb/sh-tdep.c index 2e2b08ee002..98706f6554b 100644 --- a/gdb/sh-tdep.c +++ b/gdb/sh-tdep.c @@ -1873,8 +1873,8 @@ sh_dsp_register_sim_regno (int nr) return SIM_SH_RS_REGNUM; if (nr == RE_REGNUM) return SIM_SH_RE_REGNUM; - if (nr >= R0_BANK_REGNUM && nr <= R7_BANK_REGNUM) - return nr - R0_BANK_REGNUM + SIM_SH_R0_BANK_REGNUM; + if (nr >= DSP_R0_BANK_REGNUM && nr <= DSP_R7_BANK_REGNUM) + return nr - DSP_R0_BANK_REGNUM + SIM_SH_R0_BANK_REGNUM; return nr; } diff --git a/gdb/sh-tdep.h b/gdb/sh-tdep.h index 9c84c67db7d..a2ef7602090 100644 --- a/gdb/sh-tdep.h +++ b/gdb/sh-tdep.h @@ -62,8 +62,8 @@ enum MOD_REGNUM = 40, RS_REGNUM = 43, RE_REGNUM = 44, - R0_BANK_REGNUM = 51, - R7_BANK_REGNUM = 58, + DSP_R0_BANK_REGNUM = 51, + DSP_R7_BANK_REGNUM = 58, /* Floating point pseudo registers */ DR0_REGNUM = 59, DR_LAST_REGNUM = 66, -- 2.30.2