]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - opcodes/i386-gen.c
x86: don't use opcode_length to identify pseudo prefixes
authorJan Beulich <jbeulich@suse.com>
Wed, 24 Mar 2021 07:31:41 +0000 (08:31 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 24 Mar 2021 07:31:41 +0000 (08:31 +0100)
commit311845694b1fd27ab869bbadd5d07969a62099f4
treec2d047baffcf9531eef71eca7a6ba9b9140a6e26
parent5d82f23764e91b1ce06afc334d269c55c9b6b3d3
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.
gas/ChangeLog
gas/config/tc-i386.c
opcodes/ChangeLog
opcodes/i386-gen.c
opcodes/i386-opc.h
opcodes/i386-opc.tbl
opcodes/i386-tbl.h