arm: add armv9-a architecture to -march
Update also include: + New value of Tag_CPU_arch EABI attribute (22) is added. + Updated missing Tag_CPU_arch EABI attributes. + Updated how we combine archs 'v4t_plus_v6_m' as this mechanism have to handle new Armv9 as well. Regression tested on `arm-none-eabi` cross Binutils and no issues. bfd/ * archures.c: Define bfd_mach_arm_9. * bfd-in2.h (bfd_mach_arm_9): Define bfd_mach_arm_9. * cpu-arm.c: Add 'armv9-a' option to -march. * elf32-arm.c (using_thumb2_bl): Update assert check. (arch_has_arm_nop): Add TAG_CPU_ARCH_V9. (bfd_arm_get_mach_from_attributes): Add case for TAG_CPU_ARCH_V9. Update assert. (tag_cpu_arch_combine): Updated table. (v9): New table.. binutils/ * readelf.c (arm_attr_tag_CPU_arch): Update with elfcpp/ * arm.h: Update TAG_CPU_ARCH_ enums with correct values. gas/ * NEWS: Update docs. * config/tc-arm.c (get_aeabi_cpu_arch_from_fset): Return Armv9-a for -amarch=all. (aeabi_set_public_attributes): Update assert. * doc/c-arm.texi: Update docs. * testsuite/gas/arm/armv9-a_arch.d: New test. * testsuite/gas/arm/attr-march-all.d: Update test with v9. include/ * elf/arm.h Update TAG_CPU_ARCH_ defines with correct values. * opcode/arm.h (ARM_EXT3_V9A): New macro. (ARM_ARCH_NONE): Updated with arm_feature_set.core size. (FPU_NONE): Updated. (ARM_ANY): Updated. (ARM_ARCH_UNKNOWN): New macro. (ARM_FEATURE_LOW): Updated. (ARM_FEATURE_CORE): Updated. (ARM_FEATURE_CORE_LOW): Updated. (ARM_FEATURE_CORE_HIGH): Updated. (ARM_FEATURE_COPROC): Updated. (ARM_FEATURE): Updated. (ARM_FEATURE_ALL): New macro. opcodes/ * arm-dis.c (select_arm_features): Support bfd_mach_arm_9. Also Update bfd_mach_arm_unknown to use new macro ARM_ARCH_UNKNOWN.
This commit is contained in:
parent
94c9216c03
commit
3197e593d8
14 changed files with 131 additions and 26 deletions
10
elfcpp/arm.h
10
elfcpp/arm.h
|
@ -254,7 +254,15 @@ enum
|
|||
TAG_CPU_ARCH_V6S_M,
|
||||
TAG_CPU_ARCH_V7E_M,
|
||||
TAG_CPU_ARCH_V8,
|
||||
MAX_TAG_CPU_ARCH = TAG_CPU_ARCH_V8,
|
||||
TAG_CPU_ARCH_V8R,
|
||||
TAG_CPU_ARCH_V8M_BASE,
|
||||
TAG_CPU_ARCH_V8M_MAIN,
|
||||
TAG_CPU_ARCH_8_1A,
|
||||
TAG_CPU_ARCH_8_2A,
|
||||
TAG_CPU_ARCH_8_3A,
|
||||
TAG_CPU_ARCH_V8_1M_MAIN,
|
||||
TAG_CPU_ARCH_V9,
|
||||
MAX_TAG_CPU_ARCH = TAG_CPU_ARCH_V9,
|
||||
// Pseudo-architecture to allow objects to be compatible with the subset of
|
||||
// armv4t and armv6-m. This value should never be stored in object files.
|
||||
TAG_CPU_ARCH_V4T_PLUS_V6_M = (MAX_TAG_CPU_ARCH + 1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue