diff options
author | Jan Beulich <jbeulich@suse.com> | 2022-01-17 10:26:21 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2022-01-17 10:26:21 +0100 |
commit | 71b94817f314db6ddb428e804378a30e7521a2ad (patch) | |
tree | a2dfa3ea0ecb9d1960953221793be705c3197f8f /opcodes | |
parent | e564475af1e64f97489c85fdf493ac191d4e75a3 (diff) | |
download | binutils-71b94817f314db6ddb428e804378a30e7521a2ad.zip binutils-71b94817f314db6ddb428e804378a30e7521a2ad.tar.gz binutils-71b94817f314db6ddb428e804378a30e7521a2ad.tar.bz2 |
x86: drop index16 field
There's a single use on a generally infrequently taken code path. Put
the necessary conditional there instead.
Diffstat (limited to 'opcodes')
-rw-r--r-- | opcodes/i386-dis.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/opcodes/i386-dis.c b/opcodes/i386-dis.c index c2924ef..cc24d97 100644 --- a/opcodes/i386-dis.c +++ b/opcodes/i386-dis.c @@ -219,8 +219,6 @@ struct instr_info vex; unsigned char need_vex; - const char *const *index16; - /* Remember if the current op is a jump instruction. */ bool op_is_jump; @@ -9404,7 +9402,6 @@ print_insn (bfd_vma pc, instr_info *ins) if (ins->intel_syntax) { - ins->index16 = intel_index16; ins->open_char = '['; ins->close_char = ']'; ins->separator_char = '+'; @@ -9412,7 +9409,6 @@ print_insn (bfd_vma pc, instr_info *ins) } else { - ins->index16 = att_index16; ins->open_char = '('; ins->close_char = ')'; ins->separator_char = ','; @@ -11712,7 +11708,9 @@ OP_E_memory (instr_info *ins, int bytemode, int sizeflag) { *ins->obufp++ = ins->open_char; *ins->obufp = '\0'; - oappend (ins, ins->index16[ins->modrm.rm]); + oappend (ins, + (ins->intel_syntax ? intel_index16 + : att_index16)[ins->modrm.rm]); if (ins->intel_syntax && (disp || ins->modrm.mod != 0 || ins->modrm.rm == 6)) { |