diff options
author | Jan Beulich <jbeulich@novell.com> | 2018-10-10 08:41:52 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2018-10-10 08:41:52 +0200 |
commit | 673fe0f0a7a0624819f1b4cdc289f43691567e91 (patch) | |
tree | e322ba7542279099e15cdf44862fed1ae9ee4ebc /opcodes/i386-opc.h | |
parent | 43f6cd0588a735c202934789d67b6ed4302f255d (diff) | |
download | gdb-673fe0f0a7a0624819f1b4cdc289f43691567e91.zip gdb-673fe0f0a7a0624819f1b4cdc289f43691567e91.tar.gz gdb-673fe0f0a7a0624819f1b4cdc289f43691567e91.tar.bz2 |
x86: fold Size{16,32,64} template attributes
Only one of them can be set at a time, which means they can be expressed
by a single 2-bit field instead of three 1-bit ones.
Diffstat (limited to 'opcodes/i386-opc.h')
-rw-r--r-- | opcodes/i386-opc.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/opcodes/i386-opc.h b/opcodes/i386-opc.h index 0a0ff97..9b9178a 100644 --- a/opcodes/i386-opc.h +++ b/opcodes/i386-opc.h @@ -399,11 +399,12 @@ enum /* src/dest swap for floats. */ FloatR, /* needs size prefix if in 32-bit mode */ - Size16, +#define SIZE16 1 /* needs size prefix if in 16-bit mode */ - Size32, +#define SIZE32 2 /* needs size prefix if in 64-bit mode */ - Size64, +#define SIZE64 3 + Size, /* check register size. */ CheckRegSize, /* instruction ignores operand size prefix and in Intel mode ignores @@ -627,9 +628,7 @@ typedef struct i386_opcode_modifier unsigned int jumpintersegment:1; unsigned int floatmf:1; unsigned int floatr:1; - unsigned int size16:1; - unsigned int size32:1; - unsigned int size64:1; + unsigned int size:2; unsigned int checkregsize:1; unsigned int ignoresize:1; unsigned int defaultsize:1; |