Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Alan Hayward via Gdb-patches <gdb-patches@sourceware.org>
To: Luis Machado <luis.machado@linaro.org>
Cc: nd <nd@arm.com>,
	"gdb-patches\\@sourceware.org" <gdb-patches@sourceware.org>
Subject: Re: [PATCH] [AArch64] Expose the BTI BTYPE more explicitly in the registers
Date: Wed, 17 Nov 2021 13:50:34 +0000	[thread overview]
Message-ID: <456E317C-C3B4-4FB0-999A-6E0E33E0E1F6@arm.com> (raw)
In-Reply-To: <20211117130521.2034729-1-luis.machado@linaro.org>



> On 17 Nov 2021, at 13:05, Luis Machado <luis.machado@linaro.org> wrote:
> 
> 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 ]

Good spot. Did a quick check, and couldn't see any other flags missing.
Code is obvious and looks fine to me.

Alan.

> ---
> 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
> 


  reply	other threads:[~2021-11-17 13:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-17 13:05 Luis Machado via Gdb-patches
2021-11-17 13:50 ` Alan Hayward via Gdb-patches [this message]
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=456E317C-C3B4-4FB0-999A-6E0E33E0E1F6@arm.com \
    --to=gdb-patches@sourceware.org \
    --cc=Alan.Hayward@arm.com \
    --cc=luis.machado@linaro.org \
    --cc=nd@arm.com \
    /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