diff options
author | Yury Khrustalev <Yury.Khrustalev@arm.com> | 2024-02-09 13:52:14 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2024-02-19 14:08:36 +0000 |
commit | 1bc24c0dabc577d244627581559707705a4add56 (patch) | |
tree | c037ba2fc33b6af7db73b2deecfc055af986d7c5 /gas/testsuite | |
parent | d0446acf3d465b94b3cbdbf10aee8d3d5cafe8c5 (diff) | |
download | gdb-1bc24c0dabc577d244627581559707705a4add56.zip gdb-1bc24c0dabc577d244627581559707705a4add56.tar.gz gdb-1bc24c0dabc577d244627581559707705a4add56.tar.bz2 |
aarch64: Add support for the id_aa64isar3_el1 system register
Hi,
[PATCH][Binutils] aarch64: Add support for the id_aa64isar3_el1 system register
AArch64 defines a read-only system register called id_aa64isar3_el1.
This patch also adds relevant tests.
Regression tested on the aarch64-none-elf and aarch64-none-linux-gnu targets
and no regressions was found.
Is this Ok for trunk? I do not have commit rights, if OK, can someone commit on my behalf?
Thanks,
Yury Khrustalev
From e42c835e8f2ee81150f498675f2faf108bbe79f8 Mon Sep 17 00:00:00 2001
From: Yury Khrustalev <yury.khrustalev@arm.com>
Date: Tue, 6 Feb 2024 11:05:39 +0000
Subject: [PATCH] [PATCH][Binutils] aarch64: Add support for the
id_aa64isar3_el1 system register
AArch64 defines a read-only system register called id_aa64isar3_el1.
This patch also adds relevant tests.
Regression tested on the aarch64-none-elf and aarch64-none-linux-gnu targets
and no regressions was found.
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/gas/aarch64/sysreg-diagnostic.d | 1 | ||||
-rw-r--r-- | gas/testsuite/gas/aarch64/sysreg-diagnostic.l | 1 | ||||
-rw-r--r-- | gas/testsuite/gas/aarch64/sysreg-diagnostic.s | 1 | ||||
-rw-r--r-- | gas/testsuite/gas/aarch64/sysreg.d | 2 | ||||
-rw-r--r-- | gas/testsuite/gas/aarch64/sysreg.s | 3 |
5 files changed, 8 insertions, 0 deletions
diff --git a/gas/testsuite/gas/aarch64/sysreg-diagnostic.d b/gas/testsuite/gas/aarch64/sysreg-diagnostic.d index 7059fbe..55cdf09 100644 --- a/gas/testsuite/gas/aarch64/sysreg-diagnostic.d +++ b/gas/testsuite/gas/aarch64/sysreg-diagnostic.d @@ -13,3 +13,4 @@ Disassembly of section \.text: .*: d5330503 mrs x3, dbgdtrrx_el0 .*: d5180003 msr midr_el1, x3 // note: writing to a read-only register .*: d5180640 msr id_aa64isar2_el1, x0 // note: writing to a read-only register +.*: d5180660 msr id_aa64isar3_el1, x0 // note: writing to a read-only register diff --git a/gas/testsuite/gas/aarch64/sysreg-diagnostic.l b/gas/testsuite/gas/aarch64/sysreg-diagnostic.l index e9a41a2..df3d3e5 100644 --- a/gas/testsuite/gas/aarch64/sysreg-diagnostic.l +++ b/gas/testsuite/gas/aarch64/sysreg-diagnostic.l @@ -3,3 +3,4 @@ .*:5: Warning: specified register cannot be read from at operand 2 -- `mrs x3,dbgdtrtx_el0' .*:6: Warning: specified register cannot be written to at operand 1 -- `msr midr_el1,x3' .*:7: Warning: specified register cannot be written to at operand 1 -- `msr id_aa64isar2_el1,x0' +.*:8: Warning: specified register cannot be written to at operand 1 -- `msr id_aa64isar3_el1,x0' diff --git a/gas/testsuite/gas/aarch64/sysreg-diagnostic.s b/gas/testsuite/gas/aarch64/sysreg-diagnostic.s index a689cdc..d8e48c6 100644 --- a/gas/testsuite/gas/aarch64/sysreg-diagnostic.s +++ b/gas/testsuite/gas/aarch64/sysreg-diagnostic.s @@ -5,3 +5,4 @@ mrs x3, dbgdtrtx_el0 msr midr_el1, x3 msr id_aa64isar2_el1, x0 + msr id_aa64isar3_el1, x0 diff --git a/gas/testsuite/gas/aarch64/sysreg.d b/gas/testsuite/gas/aarch64/sysreg.d index 704666d..d101758 100644 --- a/gas/testsuite/gas/aarch64/sysreg.d +++ b/gas/testsuite/gas/aarch64/sysreg.d @@ -31,3 +31,5 @@ Disassembly of section \.text: 5c: d5110300 msr trcstatr, x0 60: d5380640 mrs x0, id_aa64isar2_el1 64: d538065e mrs x30, id_aa64isar2_el1 + 68: d5380660 mrs x0, id_aa64isar3_el1 + 6c: d538067e mrs x30, id_aa64isar3_el1 diff --git a/gas/testsuite/gas/aarch64/sysreg.s b/gas/testsuite/gas/aarch64/sysreg.s index f2e75a8..a3f5b79 100644 --- a/gas/testsuite/gas/aarch64/sysreg.s +++ b/gas/testsuite/gas/aarch64/sysreg.s @@ -33,3 +33,6 @@ mrs x0, id_aa64isar2_el1 mrs x30, id_aa64isar2_el1 + + mrs x0, id_aa64isar3_el1 + mrs x30, id_aa64isar3_el1 |