diff options
author | Martin Hunt <hunt@redhat.com> | 1996-10-29 20:53:04 +0000 |
---|---|---|
committer | Martin Hunt <hunt@redhat.com> | 1996-10-29 20:53:04 +0000 |
commit | 089f0d454058c607d97c818bb485dcbe18223412 (patch) | |
tree | 5efa4a21188d9e41af882d481ba4a02784a56b44 /gdb/config/d10v | |
parent | 19414cdfb088bfc8840781e5bfc312327209f261 (diff) | |
download | gdb-089f0d454058c607d97c818bb485dcbe18223412.zip gdb-089f0d454058c607d97c818bb485dcbe18223412.tar.gz gdb-089f0d454058c607d97c818bb485dcbe18223412.tar.bz2 |
Tue Oct 29 12:48:04 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
* tm-d10v.h (REGISTER_NAMES): Add imap0,imap1,dmap.
(TARGET_READ_FP,TARGET_WRITE_FP): Define.
Diffstat (limited to 'gdb/config/d10v')
-rw-r--r-- | gdb/config/d10v/tm-d10v.h | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/gdb/config/d10v/tm-d10v.h b/gdb/config/d10v/tm-d10v.h index 3b1cffe..090dbd0 100644 --- a/gdb/config/d10v/tm-d10v.h +++ b/gdb/config/d10v/tm-d10v.h @@ -54,10 +54,10 @@ extern CORE_ADDR d10v_skip_prologue (); "r8", "r9", "r10","r11","r12", "r13", "r14","sp",\ "psw","bpsw","pc","bpc", "cr4", "cr5", "cr6", "rpt_c",\ "rpt_s","rpt_e", "mod_s", "mod_e", "cr12", "cr13", "iba", "cr15",\ - "a0", "a1"\ + "imap0","imap1","dmap","a0", "a1"\ } -#define NUM_REGS 34 +#define NUM_REGS 37 /* Register numbers of various important registers. Note that some of these values are "real" register numbers, @@ -72,7 +72,10 @@ extern CORE_ADDR d10v_skip_prologue (); #define FP_REGNUM 11 #define PC_REGNUM 18 #define PSW_REGNUM 16 -#define A0_REGNUM 32 +#define IMAP0_REGNUM 32 +#define IMAP1_REGNUM 33 +#define DMAP_REGNUM 34 +#define A0_REGNUM 35 /* Say how much memory is needed to store a copy of the register set */ #define REGISTER_BYTES ((NUM_REGS-2)*2+16) @@ -237,11 +240,13 @@ d10v_extract_return_value PARAMS ((struct type *, char *, char *)); # define LONGEST long #endif -void d10v_write_register_pid PARAMS (( int regno, LONGEST val, int pid)); -CORE_ADDR d10v_read_register_pid PARAMS ((int regno, int pid)); +void d10v_write_pc PARAMS ((LONGEST val, int pid)); +CORE_ADDR d10v_read_pc PARAMS ((int pid)); -#define TARGET_READ_PC(pid) d10v_read_register_pid (PC_REGNUM, pid) -#define TARGET_WRITE_PC(val,pid) d10v_write_register_pid (PC_REGNUM, val, pid) +#define TARGET_READ_PC(pid) d10v_read_pc (pid) +#define TARGET_WRITE_PC(val,pid) d10v_write_pc (val, pid) +#define TARGET_READ_FP() d10v_read_fp () +#define TARGET_WRITE_FP(val) d10v_write_fp (val) /* Number of bits in the appropriate type */ #define TARGET_INT_BIT (2 * TARGET_CHAR_BIT) |