From: Doug Evans Date: Wed, 10 Feb 1999 01:45:30 +0000 (+0000) Subject: (CGEN_INSN_ATTR): New type. X-Git-Tag: gdb-4_18~47 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b1673d727bd5ef503e1e3481213f6a90eb73f049;p=external%2Fbinutils.git (CGEN_INSN_ATTR): New type. --- 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 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 -cpu.h. */ + If CGEN_ARCH isn't defined, this file is being included by something other + than -desc.h. */ -/* Prepend the arch name, defined in -cpu.h, and _cgen_ to symbol S. +/* Prepend the arch name, defined in -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 -cpu.h. - It can be included independently of -cpu.h, in which case the arch + This file is included by -desc.h. + It can be included independently of -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