aboutsummaryrefslogtreecommitdiff
path: root/gdb/target-debug.h
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2021-03-24 08:33:33 +0100
committerJan Beulich <jbeulich@suse.com>2021-03-24 08:33:33 +0100
commit9a182d0461cc34912da51f445a242b392389edd6 (patch)
tree23378054b7425ee896162d67940c240b42064d61 /gdb/target-debug.h
parent3564871692e324301c2950679aa0fbb04c6d12dc (diff)
downloadbinutils-9a182d0461cc34912da51f445a242b392389edd6.zip
binutils-9a182d0461cc34912da51f445a242b392389edd6.tar.gz
binutils-9a182d0461cc34912da51f445a242b392389edd6.tar.bz2
x86: derive opcode length from opcode value
In the majority of cases we can easily determine the length from the encoding, irrespective of whether a prefix is specified there as well. We further don't even need to record the value in the table entries, as it's easy enough to determine it (without any guesswork, unless an insn with major opcode 00 appeared that requires a 2nd opcode byte to be specified explicitly) when installing the chosen template for further processing. Should an encoding appear which - has a major opcode byte of 66, F3, or F2, - requires a 2nd opcode byte to be specified explicitly, - doesn't have a mandatory prefix we'd need to convert all templates presently encoding a mandatory prefix this way to the Prefix_0X<nn> model to eliminate the respective guessing i386-gen does.
Diffstat (limited to 'gdb/target-debug.h')
0 files changed, 0 insertions, 0 deletions