* 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.
This commit is contained in:
parent
634aa483dd
commit
76cd2bd94e
3 changed files with 10 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue