aboutsummaryrefslogtreecommitdiff
path: root/opcodes/i386-gen.c
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2021-03-24 08:31:41 +0100
committerJan Beulich <jbeulich@suse.com>2021-03-24 08:31:41 +0100
commit311845694b1fd27ab869bbadd5d07969a62099f4 (patch)
treec2d047baffcf9531eef71eca7a6ba9b9140a6e26 /opcodes/i386-gen.c
parent5d82f23764e91b1ce06afc334d269c55c9b6b3d3 (diff)
downloadgdb-311845694b1fd27ab869bbadd5d07969a62099f4.zip
gdb-311845694b1fd27ab869bbadd5d07969a62099f4.tar.gz
gdb-311845694b1fd27ab869bbadd5d07969a62099f4.tar.bz2
x86: don't use opcode_length to identify pseudo prefixes
This is in preparation of opcode_length going away as a field in the templates. Identify pseudo prefixes by a base opcode of zero instead: No real prefix has an opcode of zero. This at the same time allows dropping a curious special case from i386-gen. Since most attributes are identical for all pseudo prefixes, take the opportunity and also template them.
Diffstat (limited to 'opcodes/i386-gen.c')
-rw-r--r--opcodes/i386-gen.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/opcodes/i386-gen.c b/opcodes/i386-gen.c
index 10861b6..2f4caba 100644
--- a/opcodes/i386-gen.c
+++ b/opcodes/i386-gen.c
@@ -1209,8 +1209,7 @@ process_i386_opcode_modifier (FILE *table, char *mod, char **opnd, int lineno)
|| strncasecmp(str, "EVex=", 5) == 0
|| strncasecmp(str, "Disp8MemShift=", 14) == 0
|| strncasecmp(str, "Masking=", 8) == 0
- || strcasecmp(str, "SAE") == 0
- || strcasecmp(str, "IsPrefix") == 0)
+ || strcasecmp(str, "SAE") == 0)
regular_encoding = 0;
set_bitfield (str, modifiers, val, ARRAY_SIZE (modifiers),