aarch64: Enable Cortex-X2 CPU
authorPrzemyslaw Wirkus <przemyslaw.wirkus@arm.com>
Thu, 30 Sep 2021 20:01:34 +0000 (21:01 +0100)
committerPrzemyslaw Wirkus <przemyslaw.wirkus@arm.com>
Thu, 30 Sep 2021 20:01:34 +0000 (21:01 +0100)
This patch is adding support for Cortex-X2 CPU.

gas:

* NEWS: Update docs.
* config/tc-aarch64.c: Add Cortex-X2.
* doc/c-aarch64.texi: Update docs.

gas/NEWS
gas/config/tc-aarch64.c
gas/doc/c-aarch64.texi

index 1c556d3c2d97224972332c53ca7bf5c1a2bb5ca6..2dc95aac3c7e6878e4663d7b886cb3345a8b84b9 100644 (file)
--- a/gas/NEWS
+++ b/gas/NEWS
@@ -1,6 +1,6 @@
 -*- text -*-
 
-* Add support for Cortex-A510 and Cortex-A710 for AArch64.
+* Add support for Cortex-A510, Cortex-A710, Cortex-X2 for AArch64.
 
 * Outputs of .ds.x directive and .tfloat directive with hex input from
   x86 assembler have been reduced from 12 bytes to 10 bytes to match the
index 490ebd7c4b2cc207e836d8bc83478399c9ac30f7..2ea55d8a8754788915b24a0ddff9d7cbd7414895 100644 (file)
@@ -9132,6 +9132,12 @@ static const struct aarch64_cpu_option_table aarch64_cpus[] = {
                 | AARCH64_FEATURE_SSBS
                 | AARCH64_FEATURE_PROFILE),
                 "Cortex-X1"},
+  {"cortex-x2", AARCH64_FEATURE (AARCH64_ARCH_V9,
+                AARCH64_FEATURE_BFLOAT16
+                | AARCH64_FEATURE_I8MM
+                | AARCH64_FEATURE_MEMTAG
+                | AARCH64_FEATURE_SVE2_BITPERM),
+                "Cortex-X2"},
   {"generic", AARCH64_ARCH_V8, NULL},
 
   {NULL, AARCH64_ARCH_NONE, NULL}
index ec2cdca6abc381a93823b0962d98cd818b092b4a..8263c1a8aca1b1f28dfbaee02ad1556240dd8f7b 100644 (file)
@@ -87,8 +87,9 @@ on the target processor.  The following processor names are recognized:
 @code{xgene1}
 @code{xgene2},
 @code{cortex-r82},
+@code{cortex-x1},
 and
-@code{cortex-x1}.
+@code{cortex-x2}.
 The special name @code{all} may be used to allow the assembler to accept
 instructions valid for any supported processor, including all optional
 extensions.