[PATCH 0/2] aarch64: extend the number of supported feature bits
Richard Earnshaw
rearnsha@arm.com
Fri Jun 6 12:27:54 GMT 2025
More information about the Binutils mailing list
Fri Jun 6 12:27:54 GMT 2025
- Previous message (by thread): [PATCH] ld/PE: special-case relocation types only for COFF inputs
- Next message (by thread): [PATCH 1/2] aarch64: use macro trickery to automate feature array size replication
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
This is an alternative approach to the patch Ezra posted in https://sourceware.org/pipermail/binutils/2025-May/141183.html but attempts to address to make future changes more straight forward. It works by using some macro trickery to replicate the necessary statements so that in future we only need to change the replication macro itself plus the number of feature bits we want to support. A static assert further validates at compile time that there is enough space to accommodate all the required feature bits. Note that we no-longer need to add dummy padding features to keep the macros and C code in sync. The series is divided into two patches. The first makes all the necessary changes to the macros. The second is the patch that extends the number of feature bits. This is what would also need to change in future if/when we need to move to 4 feature words. I'll hold off committing this change until next week, just to allow some time for comments. Richard Earnshaw (2): aarch64: use macro trickery to automate feature array size replication aarch64: Increase the number of feature words to 3 include/opcode/aarch64.h | 120 +++++++++++++++++++++++++++------------ 1 file changed, 84 insertions(+), 36 deletions(-) -- 2.43.0
- Previous message (by thread): [PATCH] ld/PE: special-case relocation types only for COFF inputs
- Next message (by thread): [PATCH 1/2] aarch64: use macro trickery to automate feature array size replication
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Binutils mailing list