aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2010-01-13 04:03:20 +0000
committerH.J. Lu <hjl.tools@gmail.com>2010-01-13 04:03:20 +0000
commitd869730db34eaf4a5c00b84e5d645fad3b912a1f (patch)
tree22b08896e1baf20829d1029cb7aaf52befba6e5c
parent20138696beff2774d82f6fa26ca65a16af3c3e58 (diff)
downloadgdb-d869730db34eaf4a5c00b84e5d645fad3b912a1f.zip
gdb-d869730db34eaf4a5c00b84e5d645fad3b912a1f.tar.gz
gdb-d869730db34eaf4a5c00b84e5d645fad3b912a1f.tar.bz2
Remove rex_original
2010-01-12 H.J. Lu <hongjiu.lu@intel.com> * i386-dis.c (rex_original): Removed. (ckprefix): Remove rex_original. (print_insn): Update comments.
-rw-r--r--opcodes/ChangeLog6
-rw-r--r--opcodes/i386-dis.c9
2 files changed, 8 insertions, 7 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index bd3de14..9c9334b 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,9 @@
+2010-01-12 H.J. Lu <hongjiu.lu@intel.com>
+
+ * i386-dis.c (rex_original): Removed.
+ (ckprefix): Remove rex_original.
+ (print_insn): Update comments.
+
2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* Makefile.in: Regenerate.
diff --git a/opcodes/i386-dis.c b/opcodes/i386-dis.c
index 05504de..fc7859a 100644
--- a/opcodes/i386-dis.c
+++ b/opcodes/i386-dis.c
@@ -144,10 +144,7 @@ static int prefixes;
static int rex;
/* Bits of REX we've already used. */
static int rex_used;
-/* Original REX prefix. */
-static int rex_original;
-/* REX bits in original REX prefix ignored. It may not be the same
- as rex_original since some bits may not be ignored. */
+/* REX bits in original REX prefix ignored. */
static int rex_ignored;
/* Mark parts used in the REX prefix. When we are testing for
empty prefix (for 8bit register REX extension), just mask it
@@ -11423,7 +11420,6 @@ ckprefix (void)
{
int newrex, i, length;
rex = 0;
- rex_original = 0;
rex_ignored = 0;
prefixes = 0;
used_prefixes = 0;
@@ -11537,7 +11533,6 @@ ckprefix (void)
if (*codep != FWAIT_OPCODE)
all_prefixes[i++] = *codep;
rex = newrex;
- rex_original = rex;
codep++;
length++;
}
@@ -12340,7 +12335,7 @@ print_insn (bfd_vma pc, disassemble_info *info)
}
}
- /* Check if the REX prefix used. */
+ /* Check if the REX prefix is used. */
if (rex_ignored == 0 && (rex ^ rex_used) == 0)
all_prefixes[last_rex_prefix] = 0;