aboutsummaryrefslogtreecommitdiff
path: root/opcodes/pdp11-opc.c
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2022-04-19 09:23:49 +0200
committerJan Beulich <jbeulich@suse.com>2022-04-19 09:23:49 +0200
commit2f399d995b59a522c2739c0ab163c501c082cafb (patch)
treea44cb461c11fc3b0f25c4646223cdbb0af908c0f /opcodes/pdp11-opc.c
parenta17a212139296b7b0f32d4535640d779c396acef (diff)
downloadgdb-2f399d995b59a522c2739c0ab163c501c082cafb.zip
gdb-2f399d995b59a522c2739c0ab163c501c082cafb.tar.gz
gdb-2f399d995b59a522c2739c0ab163c501c082cafb.tar.bz2
x86: correct and simplify NOP disassembly
It's not just REX.W which is ignored with opcode 0x90. The same goes for REX.R and REX.X as well as empty REX. None of these are forms of "xchg %eax,%eax" (which would mean zero-extending %eax to %rax), so they also shouldn't be disassembled this way. While there simplify things: A single hook function suffices, thus making it unnecessary to keep two expressions in sync. And checking ins->address_mode for mode_64bit also is unnecessary, as "rex" can be non-zero only in that case anyway.
Diffstat (limited to 'opcodes/pdp11-opc.c')
0 files changed, 0 insertions, 0 deletions