aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>1999-02-10 01:45:30 +0000
committerDoug Evans <dje@google.com>1999-02-10 01:45:30 +0000
commitb1673d727bd5ef503e1e3481213f6a90eb73f049 (patch)
treeb7f29451f1bafac0ec7d2eed97c6b42c616f4bfb
parentf1ffcb322baa26f54a86b09daade15a3892b94d5 (diff)
downloadgdb-b1673d727bd5ef503e1e3481213f6a90eb73f049.zip
gdb-b1673d727bd5ef503e1e3481213f6a90eb73f049.tar.gz
gdb-b1673d727bd5ef503e1e3481213f6a90eb73f049.tar.bz2
(CGEN_INSN_ATTR): New type.
-rw-r--r--include/opcode/ChangeLog1
-rw-r--r--include/opcode/cgen.h21
2 files changed, 16 insertions, 6 deletions
diff --git a/include/opcode/ChangeLog b/include/opcode/ChangeLog
index afc063c..e9d4797 100644
--- a/include/opcode/ChangeLog
+++ b/include/opcode/ChangeLog
@@ -21,6 +21,7 @@
(CGEN_INSN): Rewrite.
(CGEN_{ASM,DIS}_HASH*): Delete.
(init_opcode_table,init_ibld_table): Declare.
+ (CGEN_INSN_ATTR): New type.
Mon Feb 1 21:09:14 1999 Catherine Moore <clm@cygnus.com>
diff --git a/include/opcode/cgen.h b/include/opcode/cgen.h
index 305258b..59c613d 100644
--- a/include/opcode/cgen.h
+++ b/include/opcode/cgen.h
@@ -31,13 +31,13 @@ with this program; if not, write to the Free Software Foundation, Inc.,
/* Enums must be defined before they can be used.
Allow them to be used in struct definitions, even though the enum must
be defined elsewhere.
- if CGEN_ARCH isn't defined, this file is being included by something other
- than <arch>-cpu.h. */
+ If CGEN_ARCH isn't defined, this file is being included by something other
+ than <arch>-desc.h. */
-/* Prepend the arch name, defined in <arch>-cpu.h, and _cgen_ to symbol S.
+/* Prepend the arch name, defined in <arch>-desc.h, and _cgen_ to symbol S.
The lack of spaces in the arg list is important for non-stdc systems.
- This file is included by <arch>-cpu.h.
- It can be included independently of <arch>-cpu.h, in which case the arch
+ This file is included by <arch>-desc.h.
+ It can be included independently of <arch>-desc.h, in which case the arch
dependent portions will be declared as "unknown_cgen_foo". */
#ifndef CGEN_SYM
@@ -606,7 +606,7 @@ extern const CGEN_OPERAND CGEN_SYM (operand_table)[];
enum cgen_operand_type;
#define CGEN_OPERAND_INDEX(cd, operand) ((operand) - (cd)->operand_table)
-/* FIXME: Rename, cpu-cpu.h defines this as the typedef of the enum. */
+/* FIXME: Rename, arch-desc.h defines this as the typedef of the enum. */
#define CGEN_OPERAND_TYPE(cd, operand) \
((enum cgen_operand_type) CGEN_OPERAND_INDEX ((cd), (operand)))
#define CGEN_OPERAND_ENTRY(cd, n) (& (cd)->operand_table[n])
@@ -842,6 +842,15 @@ typedef struct
#endif
typedef CGEN_ATTR_TYPE (CGEN_INSN_NBOOL_ATTRS) CGEN_INSN_ATTR_TYPE;
+/* Enum of architecture independent attributes. */
+
+#ifndef CGEN_ARCH
+/* ??? Numbers here are recorded in two places. */
+typedef enum cgen_insn_attr {
+ CGEN_INSN_ALIAS = 32
+} CGEN_INSN_ATTR;
+#endif
+
/* This struct defines each entry in the instruction table. */
typedef struct