Remove the unused PREFIX_UD_XXX
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 15 Apr 2015 22:58:45 +0000 (15:58 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 15 Apr 2015 23:00:36 +0000 (16:00 -0700)
Remove the unused PREFIX_UD_XXX.  Invalid opcodes should be handled by
prefix_table.

* i386-dis.c (PREFIX_UD_SHIFT): Removed.
(PREFIX_UD_REPZ): Likewise.
(PREFIX_UD_REPNZ): Likewise.
(PREFIX_UD_DATA): Likewise.
(PREFIX_UD_ADDR): Likewise.
(PREFIX_UD_LOCK): Likewise.

opcodes/ChangeLog
opcodes/i386-dis.c

index 0742cccce179005554e165384e71f10577157bdb..b0089d0f1ba03f4a7ae515389ae44d0f75551c25 100644 (file)
@@ -1,3 +1,12 @@
+2015-04-15  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * i386-dis.c (PREFIX_UD_SHIFT): Removed.
+       (PREFIX_UD_REPZ): Likewise.
+       (PREFIX_UD_REPNZ): Likewise.
+       (PREFIX_UD_DATA): Likewise.
+       (PREFIX_UD_ADDR): Likewise.
+       (PREFIX_UD_LOCK): Likewise.
+
 2015-04-15  H.J. Lu  <hongjiu.lu@intel.com>
 
        * i386-dis.c (prefix_requirement): Removed.
index ca9ea2deb4e327117101392171c58bd0c95dd295..a25acc61a2b02816ebe93a86d136b579d85dac37 100644 (file)
@@ -222,12 +222,6 @@ fetch_data (struct disassemble_info *info, bfd_byte *addr)
 }
 
 /* Possible values for prefix requirement.  */
-#define PREFIX_UD_SHIFT                8
-#define PREFIX_UD_REPZ         (PREFIX_REPZ << PREFIX_UD_SHIFT)
-#define PREFIX_UD_REPNZ                (PREFIX_REPNZ << PREFIX_UD_SHIFT)
-#define PREFIX_UD_DATA         (PREFIX_DATA << PREFIX_UD_SHIFT)
-#define PREFIX_UD_ADDR         (PREFIX_ADDR << PREFIX_UD_SHIFT)
-#define PREFIX_UD_LOCK         (PREFIX_LOCK << PREFIX_UD_SHIFT)
 #define PREFIX_IGNORED_SHIFT   16
 #define PREFIX_IGNORED_REPZ    (PREFIX_REPZ << PREFIX_IGNORED_SHIFT)
 #define PREFIX_IGNORED_REPNZ   (PREFIX_REPNZ << PREFIX_IGNORED_SHIFT)