This is the mail archive of the binutils-cvs@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb/binutils-2_26-branch] [AArch64][Patch 3/5] Adjust maximum number of instruction aliases.


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=88b838d339f0e863d2ed884f7af3df50565f76de

commit 88b838d339f0e863d2ed884f7af3df50565f76de
Author: Matthew Wahab <matthew.wahab@arm.com>
Date:   Fri Dec 11 09:56:07 2015 +0000

    [AArch64][Patch 3/5] Adjust maximum number of instruction aliases.
    
    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

Diff:
---
 opcodes/ChangeLog     | 4 ++++
 opcodes/aarch64-gen.c | 4 ++--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index a924ea6..3920dc6 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,5 +1,9 @@
 2015-12-14  Matthew Wahab  <matthew.wahab@arm.com>
 
+	* aarch64-gen.c (find_alias_opcode): Set max_num_aliases to 16.
+
+2015-12-14  Matthew Wahab  <matthew.wahab@arm.com>
+
 	* aarch64-opc.c (aarch64_sys_reg): Add pbmlimitr_el1, pmbptr_el1,
 	pmbsr_el1, pmbidr_el1, pmscr_el1, pmsicr_el1, pmsirr_el1,
 	pmsfcr_el1, pmsevfr_el1, pmslatfr_el1, pmsidr_el1, pmscr_el2 and
diff --git a/opcodes/aarch64-gen.c b/opcodes/aarch64-gen.c
index 155ec85..971bcc9 100644
--- a/opcodes/aarch64-gen.c
+++ b/opcodes/aarch64-gen.c
@@ -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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]