aboutsummaryrefslogtreecommitdiff
path: root/opcodes/i386-gen.c
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2019-11-08 09:04:53 +0100
committerJan Beulich <jbeulich@suse.com>2019-11-08 09:04:53 +0100
commit4a5c67ed841db42c7be13cb2991ece3b3fc4bf75 (patch)
tree1fd1a44252fd896a35508f621c16725163ecd844 /opcodes/i386-gen.c
parent00cee14fbad24453ff56656c5726ef5e4b0de588 (diff)
downloadgdb-4a5c67ed841db42c7be13cb2991ece3b3fc4bf75.zip
gdb-4a5c67ed841db42c7be13cb2991ece3b3fc4bf75.tar.gz
gdb-4a5c67ed841db42c7be13cb2991ece3b3fc4bf75.tar.bz2
x86: convert Control/Debug/Test 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.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/opcodes/i386-gen.c b/opcodes/i386-gen.c
index 9403ce2..11a8426 100644
--- a/opcodes/i386-gen.c
+++ b/opcodes/i386-gen.c
@@ -426,11 +426,11 @@ static initializer operand_type_init[] =
{ "OPERAND_TYPE_SHIFTCOUNT",
"ShiftCount" },
{ "OPERAND_TYPE_CONTROL",
- "Control" },
+ "Class=RegCR" },
{ "OPERAND_TYPE_TEST",
- "Test" },
+ "Class=RegTR" },
{ "OPERAND_TYPE_DEBUG",
- "Debug" },
+ "Class=RegDR" },
{ "OPERAND_TYPE_FLOATREG",
"Class=Reg|Tbyte" },
{ "OPERAND_TYPE_FLOATACC",
@@ -684,6 +684,9 @@ static const struct {
} operand_classes[] = {
CLASS (Reg),
CLASS (SReg),
+ CLASS (RegCR),
+ CLASS (RegDR),
+ CLASS (RegTR),
};
#undef CLASS
@@ -708,9 +711,6 @@ static bitfield operand_types[] =
BITFIELD (Disp64),
BITFIELD (InOutPortReg),
BITFIELD (ShiftCount),
- BITFIELD (Control),
- BITFIELD (Debug),
- BITFIELD (Test),
BITFIELD (Acc),
BITFIELD (JumpAbsolute),
BITFIELD (EsSeg),