diff options
author | Mark Alexander <marka@cygnus> | 1999-01-27 00:15:00 +0000 |
---|---|---|
committer | Mark Alexander <marka@cygnus> | 1999-01-27 00:15:00 +0000 |
commit | 602886332b80616d58974029f8931c1ff9babd90 (patch) | |
tree | 9a43fa81fd16aa78c38e17e65afa0e2d4cff3dc9 /gdb/config | |
parent | d8f4ee32b235fe8803c6557c81f1c0dc793e75a8 (diff) | |
download | gdb-602886332b80616d58974029f8931c1ff9babd90.zip gdb-602886332b80616d58974029f8931c1ff9babd90.tar.gz gdb-602886332b80616d58974029f8931c1ff9babd90.tar.bz2 |
* v850-tdep.c (v850_generic_reg_names, v850e_reg_names,
v850_register_names, v850_processor_type_table): Declare tables
and structures for handling differences in register names for
v850 and v850e.
(struct reg_list): Define new structure for creating tables
of register bit masks in v850e instrutions.
(handle_prepare, handle_pushm): New helpers for v850_scan_prologue.
(v850_scan_prologue): Recognize v850e instructions: callt, prepare,
and pushm.
(v850_target_architecture_hook): New function to set register
names based on current machine.
(_initialize_v850_tdep): Set up target_architecture_hook.
* config/v850/tm-v850.h (v850_register_names): Declare.
(REGISTER_NAME): Define to refer to v850_register_names.
(SR0_REGNUM, CTBP_REGNUM): Define.
(PS_REGNUM): Redefine in terms of SR0_REGNUM.
Diffstat (limited to 'gdb/config')
-rw-r--r-- | gdb/config/v850/tm-v850.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/gdb/config/v850/tm-v850.h b/gdb/config/v850/tm-v850.h index faac00f..14dd7f0 100644 --- a/gdb/config/v850/tm-v850.h +++ b/gdb/config/v850/tm-v850.h @@ -35,6 +35,13 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ \ "pc", "fp" } +/* Initializer for an array of names of registers. + Entries beyond the first NUM_REGS are ignored. */ + +extern char **v850_register_names; +#define REGISTER_NAME(i) v850_register_names[i] + + #define REGISTER_BYTES (NUM_REGS * 4) #define REGISTER_SIZE 4 @@ -56,7 +63,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #define SAVE3_START_REGNUM 31 #define SAVE3_END_REGNUM 31 #define RP_REGNUM 31 -#define PS_REGNUM 37 +#define SR0_REGNUM 32 +#define PS_REGNUM (SR0_REGNUM+5) +#define CTBP_REGNUM (SR0_REGNUM+20) #define PC_REGNUM 64 #define FP_REGNUM 65 #define FP_RAW_REGNUM 29 |