diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2020-10-05 05:23:29 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2020-10-05 05:23:39 -0700 |
commit | 0e9f3bf12616b108682bb6f6e2a5ef04df9586a8 (patch) | |
tree | fed8d852a0d65cf6b461151725aaa817369d2f8d /opcodes/ChangeLog | |
parent | b58e7f729ebd85ff62a29357a01c15a29d458829 (diff) | |
download | gdb-0e9f3bf12616b108682bb6f6e2a5ef04df9586a8.zip gdb-0e9f3bf12616b108682bb6f6e2a5ef04df9586a8.tar.gz gdb-0e9f3bf12616b108682bb6f6e2a5ef04df9586a8.tar.bz2 |
x86: Clear modrm if not needed
The MODRM byte can be checked to display the instruction name only if the
MODRM byte needed. Clear modrm if the MODRM byte isn't needed so that
modrm field checks in putop like, modrm.mod == N with N != 0, can be done
without checking need_modrm.
gas/
PR binutils/26705
* testsuite/gas/i386/x86-64-suffix.s: Add "mov %rsp,%rbp" before
sysretq.
* testsuite/gas/i386/x86-64-suffix-intel.d: Updated.
* testsuite/gas/i386/x86-64-suffix.d: Likewise.
opcodes/
PR binutils/26705
* i386-dis.c (print_insn): Clear modrm if not needed.
(putop): Check need_modrm for modrm.mod != 3. Don't check
need_modrm for modrm.mod == 3.
Diffstat (limited to 'opcodes/ChangeLog')
-rw-r--r-- | opcodes/ChangeLog | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index c57c0b1..f1b4273 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,10 @@ +2020-10-05 H.J. Lu <hongjiu.lu@intel.com> + + PR binutils/26705 + * i386-dis.c (print_insn): Clear modrm if not needed. + (putop): Check need_modrm for modrm.mod != 3. Don't check + need_modrm for modrm.mod == 3. + 2020-09-28 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com> * aarch64-opc.c: Added ETMv4 system registers TRCACATRn, TRCACVRn, |