This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
PATCH: Fix CpuUnused and OTUnused
- From: "H.J. Lu" <hjl at lucon dot org>
- To: binutils at sources dot redhat dot com
- Date: Wed, 12 Sep 2007 11:54:10 -0700
- Subject: PATCH: Fix CpuUnused and OTUnused
I am checking this patch to fix CpuUnused and OTUnused. Otherwise
they may be wrong when we add more cpu flags and operand types.
H.J.
----
2007-09-12 H.J. Lu <hongjiu.lu@intel.com>
* i386-opc.h (CpuUnused): Defined with CpuMax.
(OTUnused): Defined with OTMax.
--- opcodes/i386-opc.h.unused 2007-09-08 18:23:19.000000000 -0700
+++ opcodes/i386-opc.h 2007-09-12 11:50:03.000000000 -0700
@@ -94,7 +94,7 @@
/* If you get a compiler error for zero width of the unused field,
comment it out. */
-#define CpuUnused (CpuNo64 + 1)
+#define CpuUnused (CpuMax + 1)
/* We can check if an instruction is available with array instead
of bitfield. */
@@ -334,7 +334,7 @@ typedef struct i386_opcode_modifier
/* If you get a compiler error for zero width of the unused field,
comment it out. */
#if 0
-#define OTUnused (RegMem + 1)
+#define OTUnused (OTMax + 1)
#endif
typedef union i386_operand_type