aarch64: Adjust alias priorities and make F_P1 default
Revises AArch64 opcode alias priorities and sets F_P1 as the new default.
This patch adjusts the AArch64 opcode alias priorities to decouple them from opcode table ordering and the default priority value. The default alias priority is changed to F_P1, allowing less specific opcodes to be deprioritized without explicitly raising the priority of overlapping, more specific opcodes. For now, non-aliases are explicitly set to priority 0 in opcode_priority() to meet aarch64-gen.c’s requirements.
In Details
This change in include/opcode/aarch64.h and opcodes/aarch64-asm-2.c redefines how alias priorities are handled. Previously, F_P1 through F_P3 represented priorities 1-3, with 0 as the default. Now, F_P0 to F_P3 represent priorities 0-3, and the default priority for aliases is F_P1 (which maps to priority 0 after the bit shift). The opcode_priority function is updated to reflect this, ensuring non-aliases correctly get priority 0.
- F_P1
- A flag representing a disassembly preference priority. In this context, it's being redefined to signify a default priority level for alias opcodes.
- alias priority
- A mechanism to determine which opcode should be preferred when multiple opcodes match the same instruction encoding, affecting how the instruction is disassembled or assembled.