aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPrzemyslaw Wirkus <przemyslaw.wirkus@arm.com>2021-09-30 21:01:34 +0100
committerPrzemyslaw Wirkus <przemyslaw.wirkus@arm.com>2021-09-30 21:01:34 +0100
commit50aaf5e6ee2687417ca4fe1a596e54a7691828db (patch)
treeac9fe55ba795745c0d911f783b47f42612ce62b9
parentdb67a8d5941307babd6342fbd52a68ca3d3d974b (diff)
downloadgdb-50aaf5e6ee2687417ca4fe1a596e54a7691828db.zip
gdb-50aaf5e6ee2687417ca4fe1a596e54a7691828db.tar.gz
gdb-50aaf5e6ee2687417ca4fe1a596e54a7691828db.tar.bz2
aarch64: Enable Cortex-X2 CPU
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.
-rw-r--r--gas/NEWS2
-rw-r--r--gas/config/tc-aarch64.c6
-rw-r--r--gas/doc/c-aarch64.texi3
3 files changed, 9 insertions, 2 deletions
diff --git a/gas/NEWS b/gas/NEWS
index 1c556d3..2dc95aa 100644
--- 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
diff --git a/gas/config/tc-aarch64.c b/gas/config/tc-aarch64.c
index 490ebd7..2ea55d8 100644
--- a/gas/config/tc-aarch64.c
+++ b/gas/config/tc-aarch64.c
@@ -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}
diff --git a/gas/doc/c-aarch64.texi b/gas/doc/c-aarch64.texi
index ec2cdca..8263c1a 100644
--- a/gas/doc/c-aarch64.texi
+++ b/gas/doc/c-aarch64.texi
@@ -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.