]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[AArch64][Patch 3/5] Adjust maximum number of instruction aliases.
authorMatthew Wahab <matthew.wahab@arm.com>
Fri, 11 Dec 2015 09:56:07 +0000 (09:56 +0000)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 24 Aug 2017 12:46:30 +0000 (09:46 -0300)
The Statistical Profile Extension adds the instruction PSB CSYNC as an
alias for the HINT #17 instruction. The HINT instruction currently has 8
aliases, which is the maximum number allowed. This patch raises to 16
the limit on the number of aliases an instruction can have.

opcodes/
2015-12-11  Matthew Wahab  <matthew.wahab@arm.com>

* aarch64-gen.c (find_alias_opcode): Set max_num_aliases to 16.

Change-Id: I131044bf6e0fe0940a9e7478d9bf52137748907d

opcodes/ChangeLog
opcodes/aarch64-gen.c

index b7fcf8e6a416b351e8f5a6a5e0b8bd72cb7e4be2..d099a5d2599c90dfb191f65469ed51b2afb521cd 100644 (file)
@@ -1,3 +1,7 @@
+2015-12-11  Matthew Wahab  <matthew.wahab@arm.com>
+
+       * aarch64-gen.c (find_alias_opcode): Set max_num_aliases to 16.
+
 2015-12-11  Matthew Wahab  <matthew.wahab@arm.com>
 
        * aarch64-opc.c (aarch64_sys_reg): Add pbmlimitr_el1, pmbptr_el1,
index 2f16792cc2b2f9b0868c92d60a819363f6ae3db4..c3ba95385abfbf6bb3743fb9e0734eb4028f88d0 100644 (file)
@@ -690,8 +690,8 @@ opcode_node *
 find_alias_opcode (const aarch64_opcode *opcode)
 {
   int i;
-  /* Assume maximum of 8 disassemble preference candidates.  */
-  const int max_num_aliases = 8;
+  /* Assume maximum of 16 disassemble preference candidates.  */
+  const int max_num_aliases = 16;
   const aarch64_opcode *ent;
   const aarch64_opcode *preferred[max_num_aliases + 1];
   opcode_node head, **next;