aboutsummaryrefslogtreecommitdiff
path: root/opcodes/i386-init.h
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2019-11-12 09:09:31 +0100
committerJan Beulich <jbeulich@suse.com>2019-11-12 09:09:31 +0100
commit51c8edf68bf1e16c6d05fbb31a36e0cc436a9750 (patch)
treeca465dc8565167792ae44eb3f95b338720c813e0 /opcodes/i386-init.h
parent474da251bf92a11a08583080af77fa197570767f (diff)
downloadgdb-51c8edf68bf1e16c6d05fbb31a36e0cc436a9750.zip
gdb-51c8edf68bf1e16c6d05fbb31a36e0cc436a9750.tar.gz
gdb-51c8edf68bf1e16c6d05fbb31a36e0cc436a9750.tar.bz2
x86: fold EsSeg into IsString
EsSeg (a per-operand bit) is used with IsString (a per-insn attribute) only. Extend the attribute to 2 bits, thus allowing to encode - not a string insn, - string insn with neither operand requiring use of %es:, - string insn with 1st operand requiring use of %es:, - string insn with 2nd operand requiring use of %es:, which covers all possible cases, allowing to drop EsSeg. The (transient) need to comment out the OTUnused #define did uncover an oversight in the earlier OTMax -> OTNum conversion, which is being taken care of here.
Diffstat (limited to 'opcodes/i386-init.h')
-rw-r--r--opcodes/i386-init.h116
1 files changed, 56 insertions, 60 deletions
diff --git a/opcodes/i386-init.h b/opcodes/i386-init.h
index 40250f4..13b5638 100644
--- a/opcodes/i386-init.h
+++ b/opcodes/i386-init.h
@@ -1365,196 +1365,192 @@
#define OPERAND_TYPE_NONE \
{ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
- 0, 0, 0, 0, 0, 0, 0, 0, 0 } }
+ 0, 0, 0, 0, 0, 0, 0 } }
#define OPERAND_TYPE_REG8 \
- { { 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, \
- 0, 0, 0, 0, 0, 0, 0, 0, 0 } }
+ { { 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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