[PATCH 2/2] aarch64: Increase the number of feature words to 3

Richard Earnshaw rearnsha@arm.com
Fri Jun 6 12:27:56 GMT 2025


Now that most of the effort of updating the number of feature words is
handled by macros, add an additional one, taking the number of
supported features to 192.
---
 include/opcode/aarch64.h | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/include/opcode/aarch64.h b/include/opcode/aarch64.h
index 98ceded2bcb..2d49cc28b4a 100644
--- a/include/opcode/aarch64.h
+++ b/include/opcode/aarch64.h
@@ -296,14 +296,15 @@ typedef uint64_t aarch64_feature_word;
 /* Maximum number of features that we can currently support.  If you
    need to increase this value you will need to increase the number of
    replication statements in AA64_REPLICATE below.  */
-#define AARCH64_MAX_FEATURES (AARCH64_BITS_PER_FEATURE_WORD * 2)
+#define AARCH64_MAX_FEATURES (AARCH64_BITS_PER_FEATURE_WORD * 3)
 
 static_assert (AARCH64_MAX_FEATURES > AARCH64_NUM_FEATURES,
 	       "Insufficent capacity in AARCH64_MAX_FEATURES");
 
 #define AA64_REPLICATE(SEP, BODY, ...)	\
   BODY (0, __VA_ARGS__) SEP		\
-  BODY (1, __VA_ARGS__)
+  BODY (1, __VA_ARGS__) SEP		\
+  BODY (2, __VA_ARGS__)
 
 /* Some useful SEP operators for use with replication.  */
 #define REP_COMMA ,
-- 
2.43.0



More information about the Binutils mailing list