x86: Add has_sib to struct instr_info
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 15 Feb 2022 17:00:17 +0000 (09:00 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 15 Feb 2022 17:00:17 +0000 (09:00 -0800)
commitce20459e162175710d8ef56118fc34edabfdce5e
treea4c34abf6a2d46aa15ead0f1f19cd2e012e9c453
parent0b35f123c200522998a81335dc218551ca7b3d92
x86: Add has_sib to struct instr_info

Add has_sib to struct instr_info and use SIB info only if ins->has_sib
is true.

PR binutils/28892
* i386-dis.c (instr_info): Add has_sib.
(get_sib): Set has_sib.
(OP_E_memory): Replace havesib with ins->has_sib.
(OP_VEX): Use ins->sib.index only if ins->has_sib is true.
opcodes/i386-dis.c