aboutsummaryrefslogtreecommitdiff
path: root/opcodes/i386-gen.c
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2019-11-08 09:06:24 +0100
committerJan Beulich <jbeulich@suse.com>2019-11-08 09:06:24 +0100
commitf74a6307279f162e892e570448dc2433963db1d8 (patch)
tree8511668a57eb3a30335ab74559d0adc94bdec513 /opcodes/i386-gen.c
parent3528c362d9471524cfe8a76c692081838b292d64 (diff)
downloadgdb-f74a6307279f162e892e570448dc2433963db1d8.zip
gdb-f74a6307279f162e892e570448dc2433963db1d8.tar.gz
gdb-f74a6307279f162e892e570448dc2433963db1d8.tar.bz2
x86: convert RegMask and RegBND from bitfield to enumerator
This is to further shrink the operand type representation.
Diffstat (limited to 'opcodes/i386-gen.c')
-rw-r--r--opcodes/i386-gen.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/opcodes/i386-gen.c b/opcodes/i386-gen.c
index 9844225..523510c 100644
--- a/opcodes/i386-gen.c
+++ b/opcodes/i386-gen.c
@@ -448,7 +448,9 @@ static initializer operand_type_init[] =
{ "OPERAND_TYPE_REGZMM",
"Class=RegSIMD|Zmmword" },
{ "OPERAND_TYPE_REGMASK",
- "RegMask" },
+ "Class=RegMask" },
+ { "OPERAND_TYPE_REGBND",
+ "Class=RegBND" },
{ "OPERAND_TYPE_ESSEG",
"EsSeg" },
{ "OPERAND_TYPE_ACC8",
@@ -481,8 +483,6 @@ static initializer operand_type_init[] =
"Imm32|Imm32S|Imm64|Disp32|Disp64" },
{ "OPERAND_TYPE_ANYIMM",
"Imm1|Imm8|Imm8S|Imm16|Imm32|Imm32S|Imm64" },
- { "OPERAND_TYPE_REGBND",
- "RegBND" },
};
typedef struct bitfield
@@ -689,13 +689,14 @@ static const struct {
CLASS (RegTR),
CLASS (RegMMX),
CLASS (RegSIMD),
+ CLASS (RegMask),
+ CLASS (RegBND),
};
#undef CLASS
static bitfield operand_types[] =
{
- BITFIELD (RegMask),
BITFIELD (Imm1),
BITFIELD (Imm8),
BITFIELD (Imm8S),
@@ -725,7 +726,6 @@ static bitfield operand_types[] =
BITFIELD (Zmmword),
BITFIELD (Unspecified),
BITFIELD (Anysize),
- BITFIELD (RegBND),
#ifdef OTUnused
BITFIELD (OTUnused),
#endif