diff options
author | Jan Beulich <jbeulich@suse.com> | 2021-03-23 17:09:11 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2021-03-23 17:09:11 +0100 |
commit | dac10fb0d10aca2b75512a5fd2880a83d4fc454d (patch) | |
tree | f216f811caee94295374cca43221a17ad0eb822f /opcodes/i386-gen.c | |
parent | 441f6aca3923ba65db139f5c2557a5f01e190edc (diff) | |
download | gdb-dac10fb0d10aca2b75512a5fd2880a83d4fc454d.zip gdb-dac10fb0d10aca2b75512a5fd2880a83d4fc454d.tar.gz gdb-dac10fb0d10aca2b75512a5fd2880a83d4fc454d.tar.bz2 |
x86: re-order two fields of struct insn_template
To facilitate a subsequent table parser change, re-order CPU flags and
opcode modifier fields. No functional change intended.
Diffstat (limited to 'opcodes/i386-gen.c')
-rw-r--r-- | opcodes/i386-gen.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/opcodes/i386-gen.c b/opcodes/i386-gen.c index 84dbd45..10861b6 100644 --- a/opcodes/i386-gen.c +++ b/opcodes/i386-gen.c @@ -1411,8 +1411,6 @@ output_i386_opcode (FILE *table, const char *name, char *str, fprintf (table, " { \"%s\", %s, %s, %s, %u,\n", name, base_opcode, extension_opcode, opcode_length, i); - process_i386_cpu_flag (table, cpu_flags, 0, ",", " ", lineno); - if (process_i386_opcode_modifier (table, opcode_modifier, operand_types, lineno)) { @@ -1450,6 +1448,8 @@ output_i386_opcode (FILE *table, const char *name, char *str, } } + process_i386_cpu_flag (table, cpu_flags, 0, ",", " ", lineno); + fprintf (table, " { "); for (i = 0; i < ARRAY_SIZE (operand_types); i++) @@ -1837,10 +1837,10 @@ process_i386_opcodes (FILE *table) fprintf (table, " { NULL, 0, 0, 0, 0,\n"); - process_i386_cpu_flag (table, "0", 0, ",", " ", -1); - process_i386_opcode_modifier (table, "0", NULL, -1); + process_i386_cpu_flag (table, "0", 0, ",", " ", -1); + fprintf (table, " { "); process_i386_operand_type (table, "0", stage_opcodes, "\t ", -1); fprintf (table, " } }\n"); |