From: Luis Machado via Gdb-patches <gdb-patches@sourceware.org>
To: gdb-patches@sourceware.org
Subject: [PATCH] [AArch64] Expose the BTI BTYPE more explicitly in the registers
Date: Wed, 17 Nov 2021 10:05:21 -0300 [thread overview]
Message-ID: <20211117130521.2034729-1-luis.machado@linaro.org> (raw)
Augment the register description XML to expose the BTI BTYPE field contained
in the CPSR register. It will be displayed like so:
cpsr 0x60001000 [ EL=0 BTYPE=0 SSBS C Z ]
---
gdb/features/aarch64-core.c | 1 +
gdb/features/aarch64-core.xml | 3 +++
2 files changed, 4 insertions(+)
diff --git a/gdb/features/aarch64-core.c b/gdb/features/aarch64-core.c
index a080a641c45..bb707173be6 100644
--- a/gdb/features/aarch64-core.c
+++ b/gdb/features/aarch64-core.c
@@ -18,6 +18,7 @@ create_feature_aarch64_core (struct target_desc *result, long regnum)
tdesc_add_flag (type_with_fields, 7, "I");
tdesc_add_flag (type_with_fields, 8, "A");
tdesc_add_flag (type_with_fields, 9, "D");
+ tdesc_add_bitfield (type_with_fields, "BTYPE", 10, 11);
tdesc_add_flag (type_with_fields, 12, "SSBS");
tdesc_add_flag (type_with_fields, 20, "IL");
tdesc_add_flag (type_with_fields, 21, "SS");
diff --git a/gdb/features/aarch64-core.xml b/gdb/features/aarch64-core.xml
index d63456956fd..a328ede508c 100644
--- a/gdb/features/aarch64-core.xml
+++ b/gdb/features/aarch64-core.xml
@@ -61,6 +61,9 @@
<!-- Debug exception mask. -->
<field name="D" start="9" end="9"/>
+ <!-- ARMv8.5-A: Branch Target Identification BTYPE. -->
+ <field name="BTYPE" start="10" end="11"/>
+
<!-- ARMv8.0-A: Speculative Store Bypass. -->
<field name="SSBS" start="12" end="12"/>
--
2.25.1
next reply other threads:[~2021-11-17 13:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-17 13:05 Luis Machado via Gdb-patches [this message]
2021-11-17 13:50 ` Alan Hayward via Gdb-patches
2021-11-17 13:57 ` Luis Machado via Gdb-patches
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211117130521.2034729-1-luis.machado@linaro.org \
--to=gdb-patches@sourceware.org \
--cc=luis.machado@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox