This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[AArch64][Patch 3/5] Adjust maximum number of instruction aliases.
- From: Matthew Wahab <matthew dot wahab at foss dot arm dot com>
- To: binutils at sourceware dot org
- Date: Wed, 9 Dec 2015 11:08:36 +0000
- Subject: [AArch64][Patch 3/5] Adjust maximum number of instruction aliases.
- Authentication-results: sourceware.org; auth=none
- References: <56680B00 dot 6000705 at foss dot arm dot com>
Hello,
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.
Tested the series for aarch64-none-linux-gnu with cross-compiled
check-binutils and check-gas.
Ok for trunk?
Matthew
opcodes/
2015-12-09 Matthew Wahab <matthew.wahab@arm.com>
* aarch64-gen.c (find_alias_opcode): Set max_num_aliases to 16.
>From c6698c857d3946a4c915b72a56adab75f1d7ab6d Mon Sep 17 00:00:00 2001
From: Matthew Wahab <matthew.wahab@arm.com>
Date: Thu, 12 Nov 2015 14:13:53 +0000
Subject: [PATCH 3/5] [AArch64][Patch 3/5] Adjust maximum number of instruction
aliases.
Change-Id: Ie6da975d60a7cac000b6c765d8e5248cb9a8fe7e
---
opcodes/aarch64-gen.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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;
--
2.1.4