]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
MIPS/opcodes: Rework INSN_* flags into a consistent block
authorMaciej W. Rozycki <macro@redhat.com>
Thu, 13 Jun 2024 13:01:54 +0000 (14:01 +0100)
committerMaciej W. Rozycki <macro@redhat.com>
Thu, 13 Jun 2024 13:01:54 +0000 (14:01 +0100)
commit888ff82e77d9ab8f04893a68cd6b4f518d6b50d9
treef5e7f51aec833bcd7a568c74bed591fec1db1184
parent84baa5fe937543578159de698cbb8c5f2e7a57c6
MIPS/opcodes: Rework INSN_* flags into a consistent block

For historic reasons we have ended up with a random set of discontiguous
bit assignments for INSN_* flags within `membership' and `exclusions'
members of `mips_opcode'.  Some of the bits were previously used for ASE
assignments and have been reused in a disorganised fashion since `ase'
has been split off as a member on its own.  It makes them hard to track
and maintain, and to see how many we still have available for future
assignments.

Therefore reorder the flags using consecutive bits and matching the
order used with the switch statement in `cpu_is_member'.
include/opcode/mips.h