]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
aarch64: use macro trickery to automate feature array size replication
authorRichard Earnshaw <rearnsha@arm.com>
Thu, 22 May 2025 15:18:11 +0000 (16:18 +0100)
committerRichard Earnshaw <rearnsha@arm.com>
Mon, 9 Jun 2025 14:42:35 +0000 (15:42 +0100)
commitdccb302cf2ec0fbe32bf5b1c515f84f6a754a2ed
treece1a006fd95eb3785ea1b1a0ca194b953f8d863e
parentec5409b1865b9a462ea336db7428c210eb1955d7
aarch64: use macro trickery to automate feature array size replication

There are quite a few macros that need to be changed when we need to
increase the number of words in the features data structure.  With
some macro trickery we can automate most of this so that a single
macro needs to be updated.

With C2X we could probably do even better by using recursion, but this
is still a much better situation than we had previously.

A static assertion is used to ensure that there is always enough space
in the flags macro for the number of feature bits we need to support.
include/opcode/aarch64.h