diff options
author | Jan Beulich <jbeulich@suse.com> | 2019-10-30 09:05:46 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2019-10-30 09:05:46 +0100 |
commit | 507916b8551f6227da9fe8071267c164a3014b79 (patch) | |
tree | 3c019d5339902332e6faca696ab8f9e60aad73e1 /opcodes/i386-opc.h | |
parent | 74fb338f4689b1072a5933102fe1f08caab5bac6 (diff) | |
download | gdb-507916b8551f6227da9fe8071267c164a3014b79.zip gdb-507916b8551f6227da9fe8071267c164a3014b79.tar.gz gdb-507916b8551f6227da9fe8071267c164a3014b79.tar.bz2 |
x86: drop stray W
The flag is used to indicate opcodes which can be switched between byte
and word/dword/qword forms (in a "canonical" way). Obviously it's quite
odd then to see it on insns not allowing for byte operands in the first
place. As a result the opcode bytes need to be adjusted accordingly,
which includes comparisons done in optimize_encoding().
To make re-introduction of such issues less likely have i386-gen
diagnose it (in a generally non-fatal way for now).
Diffstat (limited to 'opcodes/i386-opc.h')
-rw-r--r-- | opcodes/i386-opc.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/opcodes/i386-opc.h b/opcodes/i386-opc.h index 4246d0b..f0f0015 100644 --- a/opcodes/i386-opc.h +++ b/opcodes/i386-opc.h @@ -387,7 +387,9 @@ enum { /* has direction bit. */ D = 0, - /* set if operands can be words or dwords encoded the canonical way */ + /* set if operands can be both bytes and words/dwords/qwords, encoded the + canonical way; the base_opcode field should hold the encoding for byte + operands */ W, /* load form instruction. Must be placed before store form. */ Load, |