PATCH: Add missing Morpho coprocessor registers

Mark Mitchell
2006-04-19T04:58:02Z

This patch adds a few missing registers to the MT port.

OK to apply?

Thanks,

--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713

2006-04-18 Mark Mitchell <mark@codesourcery.com>

* mt-tdep.c (mt_gdb_regnums): Add ZI2, ZQ2, Ichannel2,
Iscramb2, Qscramb2, Qchannel2.
(mt_register_name): Likewise.
(mt_copro_register_type): Describe ZI2 and ZQ2.

Index: mt-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/mt-tdep.c,v
retrieving revision 1.4.2.1
diff -c -5 -p -r1.4.2.1 mt-tdep.c
*** mt-tdep.c 12 Apr 2006 03:22:29 -0000 1.4.2.1
--- mt-tdep.c 19 Apr 2006 04:46:23 -0000
*************** enum mt_gdb_regnums
*** 107,116 ****
--- 107,122 ----
MT_ISCRAMB_REGNUM, /* 32 bits. */
MT_QSCRAMB_REGNUM, /* 32 bits. */
MT_OUT_REGNUM, /* 16 bits. */
MT_EXMAC_REGNUM, /* 32 bits (8 used). */
MT_QCHANNEL_REGNUM, /* 32 bits. */
+ MT_ZI2_REGNUM, /* 16 bits. */
+ MT_ZQ2_REGNUM, /* 16 bits. */
+ MT_CHANNEL2_REGNUM, /* 32 bits. */
+ MT_ISCRAMB2_REGNUM, /* 32 bits. */
+ MT_QSCRAMB2_REGNUM, /* 32 bits. */
+ MT_QCHANNEL2_REGNUM, /* 32 bits. */

/* Number of real registers. */
MT_NUM_REGS,

/* Pseudo-registers. */
*************** mt_register_name (int regnum)
*** 147,156 ****
--- 153,163 ----
"", /* copro register. */
"cr0", "cr1", "cr2", "cr3", "cr4", "cr5", "cr6", "cr7",
"cr8", "cr9", "cr10", "cr11", "cr12", "cr13", "cr14", "cr15",
"bypa", "bypb", "bypc", "flag", "context", "" /* mac. */ , "z1", "z2",
"Ichannel", "Iscramb", "Qscramb", "out", "" /* ex-mac. */ , "Qchannel",
+ "zi2", "zq2", "Ichannel2", "Iscramb2", "Qscramb2", "Qchannel2",
/* Pseudo-registers. */
"coprocessor", "MAC"
};
static const char *array_names[MT_COPRO_PSEUDOREG_REGS
* MT_COPRO_PSEUDOREG_DIM_1
*************** mt_copro_register_type (struct gdbarch *
*** 211,220 ****
--- 218,229 ----
case MT_BYPB_REGNUM:
case MT_BYPC_REGNUM:
case MT_Z1_REGNUM:
case MT_Z2_REGNUM:
case MT_OUT_REGNUM:
+ case MT_ZI2_REGNUM:
+ case MT_ZQ2_REGNUM:
return builtin_type_int16;
case MT_EXMAC_REGNUM:
case MT_MAC_REGNUM:
return builtin_type_uint32;