From: Jim MacArthur <jim.macarthur@linaro.org>
To: qemu-devel@nongnu.org
Cc: Alex Bennee <alex.bennee@linaro.org>
Subject: Re: [PATCH 4/7] tests/tcg: move aarch64 page table setup to c code
Date: Thu, 7 May 2026 18:13:00 +0100 [thread overview]
Message-ID: <afzIHLbjs-PIkKy9@linaro.org> (raw)
In-Reply-To: <20260417164328.1009132-5-alex.bennee@linaro.org>
On Fri, Apr 17, 2026 at 05:43:24PM +0100, Alex Bennée wrote:
> If we want more flexibility messing around with page tables lets do it
> without having to rely on assembly for it.
>
> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
>
> ---
> AJB
> - a result of -O0 does mean each helper ends up with a stack frame
> being needed to do the relatively simple mask and shift. I've
> experimented with -O1 and trying to manually enable inlining but
> couldn't get anything to work.
> ---
> +#define DESC_AF (1ULL << 10)
> +#define DESC_ATTRINDX(i) ((uint64_t)(i) << 2)
> +#define DESC_NS (1ULL << 5)
> +#define DESC_UXN (1ULL << 53)
> +#define DESC_PXN (1ULL << 54)
I *think* you have UXN and PXN the wrong way round? See table D8-52; UXN is always 54.
It works fine in this case as we always use them together.
Otherwise,
Reviewed-by: Jim MacArthur <jim.macarthur@linaro.org>
next prev parent reply other threads:[~2026-05-07 17:13 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-17 16:43 [PATCH 0/7] tests/tcg: more capabilities for aarch64-softmmu tests Alex Bennée
2026-04-17 16:43 ` [PATCH 1/7] tests/tcg: introduce a lib dir for aarch64 system tests Alex Bennée
2026-04-24 1:38 ` Richard Henderson
2026-04-17 16:43 ` [PATCH 2/7] tests/tcg: convert aarch64 feat-xs test to use helpers Alex Bennée
2026-04-24 1:38 ` Richard Henderson
2026-04-17 16:43 ` [PATCH 3/7] tests/tcg: convert aarch64 asid2 test to use sysreg helpers Alex Bennée
2026-04-24 1:39 ` Richard Henderson
2026-04-17 16:43 ` [PATCH 4/7] tests/tcg: move aarch64 page table setup to c code Alex Bennée
2026-05-07 17:13 ` Jim MacArthur [this message]
2026-04-17 16:43 ` [PATCH 5/7] tests/tcg: add HW page for aarch64 tests Alex Bennée
2026-04-17 16:43 ` [PATCH 6/7] tests/tcg: create a mini-gic3 library Alex Bennée
2026-04-17 16:43 ` [PATCH 7/7] tests/tcg: add basic test for aarch64 wf[ie][t] insns Alex Bennée
2026-04-23 15:57 ` Jim MacArthur
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=afzIHLbjs-PIkKy9@linaro.org \
--to=jim.macarthur@linaro.org \
--cc=alex.bennee@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.