From: Richard Henderson <richard.henderson@linaro.org>
To: Gustavo Romero <gustavo.romero@linaro.org>,
qemu-devel@nongnu.org, alex.bennee@linaro.org
Cc: philmd@linaro.org, peter.maydell@linaro.org
Subject: Re: [PATCH v2 4/4] tests/tcg/aarch64: Extend MTE gdbstub tests to system mode
Date: Wed, 21 Aug 2024 15:40:33 +1000 [thread overview]
Message-ID: <5fcad222-6a85-4b6c-bc8c-76cdcac62399@linaro.org> (raw)
In-Reply-To: <20240808051531.3183498-5-gustavo.romero@linaro.org>
On 8/8/24 15:15, Gustavo Romero wrote:
> diff --git a/tests/tcg/aarch64/system/boot.S b/tests/tcg/aarch64/system/boot.S
> index 501685d0ec..79a2ada74a 100644
> --- a/tests/tcg/aarch64/system/boot.S
> +++ b/tests/tcg/aarch64/system/boot.S
> @@ -135,6 +135,17 @@ __start:
> orr x1, x1, x3
> str x1, [x2] /* 2nd 2mb (.data & .bss)*/
>
> + /* Third block: .mte_page */
> + adrp x1, .mte_page
> + add x1, x1, :lo12:.mte_page
> + bic x1, x1, #(1 << 21) - 1
A bit silly to add in the low 12 bits and then mask them out again immediately.
I see that's common silliness with the other two ptes.
> diff --git a/tests/tcg/aarch64/system/kernel.ld b/tests/tcg/aarch64/system/kernel.ld
> index 7b3a76dcbf..7c00c1c378 100644
> --- a/tests/tcg/aarch64/system/kernel.ld
> +++ b/tests/tcg/aarch64/system/kernel.ld
> @@ -18,6 +18,11 @@ SECTIONS
> .bss : {
> *(.bss)
> }
> + /* align MTE section to next (third) 2mb */
> + . = ALIGN(1 << 22);
> + .mte : {
> + *(.mte_page)
> + }
This is likely to add 2mb of useless stuff to the image.
Maybe better to just define a symbol:
mte_page = ALIGN(1 << 22);
and reference that instead.
Otherwise this looks good.
r~
prev parent reply other threads:[~2024-08-21 5:41 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-08 5:15 [PATCH v2 0/4] gdbstub: Add support for MTE in system mode Gustavo Romero
2024-08-08 5:15 ` [PATCH v2 1/4] gdbstub: Use specific MMU index when probing MTE addresses Gustavo Romero
2024-08-21 5:16 ` Richard Henderson
2024-08-08 5:15 ` [PATCH v2 2/4] gdbstub: Add support for MTE in system mode Gustavo Romero
2024-08-08 5:15 ` [PATCH v2 3/4] tests/guest-debug: Support passing arguments to the GDB test script Gustavo Romero
2024-08-08 5:15 ` [PATCH v2 4/4] tests/tcg/aarch64: Extend MTE gdbstub tests to system mode Gustavo Romero
2024-08-21 5:40 ` Richard Henderson [this message]
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=5fcad222-6a85-4b6c-bc8c-76cdcac62399@linaro.org \
--to=richard.henderson@linaro.org \
--cc=alex.bennee@linaro.org \
--cc=gustavo.romero@linaro.org \
--cc=peter.maydell@linaro.org \
--cc=philmd@linaro.org \
--cc=qemu-devel@nongnu.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;
as well as URLs for NNTP newsgroup(s).