From f1363b0fb4eb8bbe9ef08f1e78ff6ffa71e07b8b Mon Sep 17 00:00:00 2001 From: Alex Coplan Date: Tue, 8 Sep 2020 14:22:59 +0100 Subject: [PATCH] aarch64: Add -mcpu option for Cortex-R82 This adds support for the Arm Cortex-R82 CPU in AArch64 GAS. For more information about this processor, see [0]. [0] : https://developer.arm.com/ip-products/processors/cortex-r/cortex-r82 gas/ChangeLog: 2020-09-08 Alex Coplan * config/tc-aarch64.c (aarch64_cpus): Add Cortex-R82. * doc/c-aarch64.texi: Document -mcpu=cortex-r82. --- gas/ChangeLog | 5 +++++ gas/config/tc-aarch64.c | 1 + gas/doc/c-aarch64.texi | 3 ++- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 2c09ca22e82..e89d7e04007 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2020-09-08 Alex Coplan + + * config/tc-aarch64.c (aarch64_cpus): Add Cortex-R82. + * doc/c-aarch64.texi: Document -mcpu=cortex-r82. + 2020-09-08 Alex Coplan * config/tc-aarch64.c (parse_sys_reg): Also pass sysreg name to diff --git a/gas/config/tc-aarch64.c b/gas/config/tc-aarch64.c index b2a1683efd2..391746e3e07 100644 --- a/gas/config/tc-aarch64.c +++ b/gas/config/tc-aarch64.c @@ -8976,6 +8976,7 @@ static const struct aarch64_cpu_option_table aarch64_cpus[] = { {"xgene1", AARCH64_ARCH_V8, "APM X-Gene 1"}, {"xgene2", AARCH64_FEATURE (AARCH64_ARCH_V8, AARCH64_FEATURE_CRC), "APM X-Gene 2"}, + {"cortex-r82", AARCH64_ARCH_V8_R, "Cortex-R82"}, {"generic", AARCH64_ARCH_V8, NULL}, {NULL, AARCH64_ARCH_NONE, NULL} diff --git a/gas/doc/c-aarch64.texi b/gas/doc/c-aarch64.texi index 89725a7e2f8..d8f2e19326f 100644 --- a/gas/doc/c-aarch64.texi +++ b/gas/doc/c-aarch64.texi @@ -78,8 +78,9 @@ on the target processor. The following processor names are recognized: @code{thunderx}, @code{vulcan}, @code{xgene1} +@code{xgene2}, and -@code{xgene2}. +@code{cortex-r82}. The special name @code{all} may be used to allow the assembler to accept instructions valid for any supported processor, including all optional extensions. -- 2.30.2