aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMartin Hunt <hunt@redhat.com>1996-07-22 18:56:30 +0000
committerMartin Hunt <hunt@redhat.com>1996-07-22 18:56:30 +0000
commitc38655b90f0beed92b9387ac9d8b7c02901dfdd8 (patch)
tree8cd27cf1bd47d940c5fd9daa0481f2f50a05f85c /include
parent0ef325594af012f7bc3b56143fc1f26caf66069a (diff)
downloadgdb-c38655b90f0beed92b9387ac9d8b7c02901dfdd8.zip
gdb-c38655b90f0beed92b9387ac9d8b7c02901dfdd8.tar.gz
gdb-c38655b90f0beed92b9387ac9d8b7c02901dfdd8.tar.bz2
start-sanitize-d10v
Mon Jul 22 11:21:15 1996 Martin M. Hunt <hunt@pizza.cygnus.com> * d10v.h (pd_reg): Define. Putting the definition here allows the assembler and disassembler to share the same struct. end-sanitize-d10v
Diffstat (limited to 'include')
-rw-r--r--include/opcode/ChangeLog7
-rw-r--r--include/opcode/d10v.h15
2 files changed, 22 insertions, 0 deletions
diff --git a/include/opcode/ChangeLog b/include/opcode/ChangeLog
index 6c05eb4..3f818a7 100644
--- a/include/opcode/ChangeLog
+++ b/include/opcode/ChangeLog
@@ -1,3 +1,10 @@
+start-sanitize-d10v
+Mon Jul 22 11:21:15 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
+
+ * d10v.h (pd_reg): Define. Putting the definition here allows
+ the assembler and disassembler to share the same struct.
+
+end-sanitize-d10v
Mon Jul 22 12:15:25 1996 Ian Lance Taylor <ian@cygnus.com>
* i960.h (i960_opcodes): "halt" takes an argument. From Stephen
diff --git a/include/opcode/d10v.h b/include/opcode/d10v.h
index 86085a5..81dfc1c 100644
--- a/include/opcode/d10v.h
+++ b/include/opcode/d10v.h
@@ -147,4 +147,19 @@ extern const struct d10v_operand d10v_operands[];
/* predecrement mode '@-sp' */
#define OPERAND_ATMINUS (0x2000)
+/* Structure to hold information about predefined registers. */
+struct pd_reg
+{
+ char *name; /* name to recognize */
+ char *pname; /* name to print for this register */
+ int value;
+};
+
+extern const struct pd_reg pre_defined_registers[];
+int reg_name_cnt();
+
+/* an expressionS only has one register type, so we fake it */
+/* by setting high bits to indicate type */
+#define REGISTER_MASK 0xFF
+
#endif /* D10V_H */