aboutsummaryrefslogtreecommitdiff
path: root/opcodes/i386-opc.h
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2019-10-30 09:06:42 +0100
committerJan Beulich <jbeulich@suse.com>2019-10-30 09:06:42 +0100
commita2cebd03faf935d292b524e999787d379a6b04ad (patch)
tree18a537981dabb36920121eacb51bb30e6ad62c66 /opcodes/i386-opc.h
parent507916b8551f6227da9fe8071267c164a3014b79 (diff)
downloadgdb-a2cebd03faf935d292b524e999787d379a6b04ad.zip
gdb-a2cebd03faf935d292b524e999787d379a6b04ad.tar.gz
gdb-a2cebd03faf935d292b524e999787d379a6b04ad.tar.bz2
x86: slightly rearrange struct insn_template
This avoids holes between the individual fields, (potentially) shrinking the overall template table size by 4 bytes per entry.
Diffstat (limited to 'opcodes/i386-opc.h')
-rw-r--r--opcodes/i386-opc.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/opcodes/i386-opc.h b/opcodes/i386-opc.h
index f0f0015..8727f11 100644
--- a/opcodes/i386-opc.h
+++ b/opcodes/i386-opc.h
@@ -852,9 +852,6 @@ typedef struct insn_template
/* instruction name sans width suffix ("mov" for movl insns) */
char *name;
- /* how many operands */
- unsigned int operands;
-
/* base_opcode is the fundamental opcode byte without optional
prefix(es). */
unsigned int base_opcode;
@@ -871,12 +868,15 @@ typedef struct insn_template
AMD 3DNow! instructions.
If this template has no extension opcode (the usual case) use None
Instructions */
- unsigned int extension_opcode;
+ unsigned short extension_opcode;
#define None 0xffff /* If no extension_opcode is possible. */
/* Opcode length. */
unsigned char opcode_length;
+ /* how many operands */
+ unsigned char operands;
+
/* cpu feature flags */
i386_cpu_flags cpu_flags;