* sh-tdep.c (SH_NUM_REGS): Define as 67.
authorCorinna Vinschen <corinna@vinschen.de>
Wed, 6 Oct 2004 08:55:36 +0000 (08:55 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Wed, 6 Oct 2004 08:55:36 +0000 (08:55 +0000)
commitda9624689cb3b39e90e5979e312df01cc684aae7
treea56c4356f71052c258772ee7818d5c8c9e42da5c
parent1326e61ba304cb9d518a1d874111d97b94726c5b
* sh-tdep.c (SH_NUM_REGS): Define as 67.
(sh_sh_register_name): Add eight empty register names.
(sh_sh3_register_name): Ditto.
(sh_sh3e_register_name): Ditto.
(sh_sh2e_register_name): Ditto.
(sh_sh2a_register_name): New function, defining SH2A register set.
(sh_sh2a_nofpu_register_name): New function, defining SH2A register set
in nofpu case.
(sh_sh_dsp_register_name): Add eight empty register names.
(sh_sh3_dsp_register_name): Ditto.
(sh_sh4_register_name): Ditto.
(sh_sh4_nofpu_register_name): Ditto.
(sh_sh4al_dsp_register_name): Ditto.
(sh2a_show_regs): New function.
(sh2a_nofpu_show_regs): New function.
(sh_sh2a_register_type): New function.
(do_bank_register_info): New function.
(sh_print_pseudo_register): Call do_bank_register_info.
Call sh_print_pseudo_register for valid "bank" register.
(sh_sh2a_register_sim_regno): New function.
(sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
Increment pseudo register count by one for all sh variants with
pseudo registers to accomodate pseudo bank register.
* sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
Increment pseudo register numbers.
gdb/ChangeLog
gdb/sh-tdep.c
gdb/sh-tdep.h