[binutils-gdb] Re: x86: correct decoding of nop/reserved space (0f18 ... 0x1f)

Alan Modra amodra@sourceware.org
Fri Mar 12 00:45:47 GMT 2021


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=78c84bf926fc263a588c96c7cd313fb9a9988b4b

commit 78c84bf926fc263a588c96c7cd313fb9a9988b4b
Author: Alan Modra <amodra@gmail.com>
Date:   Fri Mar 12 10:36:49 2021 +1030

    Re: x86: correct decoding of nop/reserved space (0f18 ... 0x1f)
    
            * i386-dis.c (print_insn <PREFIX_IGNORED>): Correct typo.

Diff:
---
 opcodes/ChangeLog  | 4 ++++
 opcodes/i386-dis.c | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index 60a9c687250..893a97548e5 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,7 @@
+2021-03-12  Alan Modra  <amodra@gmail.com>
+
+	* i386-dis.c (print_insn <PREFIX_IGNORED>): Correct typo.
+
 2021-03-11  Jan Beulich  <jbeulich@suse.com>
 
 	* i386-dis.c (OP_XMM): Re-order checks.
diff --git a/opcodes/i386-dis.c b/opcodes/i386-dis.c
index 2985e8d4417..4e3304d4a4c 100644
--- a/opcodes/i386-dis.c
+++ b/opcodes/i386-dis.c
@@ -9783,7 +9783,7 @@ print_insn (bfd_vma pc, disassemble_info *info)
 	 origins in all_prefixes.  */
       used_prefixes &= ~PREFIX_OPCODE;
       if (last_data_prefix >= 0)
-	all_prefixes[last_repz_prefix] = 0x66;
+	all_prefixes[last_data_prefix] = 0x66;
       if (last_repz_prefix >= 0)
 	all_prefixes[last_repz_prefix] = 0xf3;
       if (last_repnz_prefix >= 0)


More information about the Binutils-cvs mailing list