PATCH: Fix CpuUnused and OTUnused

H.J. Lu hjl@lucon.org
Wed Sep 12 18:54:00 GMT 2007


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



More information about the Binutils mailing list