From: Richard Henderson <richard.henderson@linaro.org>
To: Peter Maydell <peter.maydell@linaro.org>,
qemu-arm@nongnu.org, qemu-devel@nongnu.org
Subject: Re: [PATCH v2 for-10.1 3/3] linux-user/aarch64: Support ZT_MAGIC signal frame record
Date: Fri, 25 Jul 2025 10:23:57 -1000 [thread overview]
Message-ID: <91da16cb-45ee-446b-97df-95ef956d1386@linaro.org> (raw)
In-Reply-To: <20250725175510.3864231-4-peter.maydell@linaro.org>
On 7/25/25 07:55, Peter Maydell wrote:
> FEAT_SME2 adds the ZT0 register, whose contents may need to be
> preserved and restored on signal handler entry and exit. This is
> done with a new ZT_MAGIC record. We forgot to implement support for
> this in our linux-user code before enabling the SME2p1 emulation,
> which meant that a signal handler using SME would corrupt the ZT0
> register value, and code that attempted to unwind an exception from
> inside a signal handler would not work.
>
> Add the missing record handling.
>
> Fixes: 7b1613a1020d2942 ("target/arm: Enable FEAT_SME2p1 on -cpu max")
> Signed-off-by: Peter Maydell<peter.maydell@linaro.org>
> ---
> linux-user/aarch64/signal.c | 93 ++++++++++++++++++++++++++++++++++++-
> 1 file changed, 92 insertions(+), 1 deletion(-)
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
r~
prev parent reply other threads:[~2025-07-25 20:28 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-25 17:55 [PATCH v2 for-10.1 0/3] linux-user/aarch64: Fix SME/SME2 signal frame handling Peter Maydell
2025-07-25 17:55 ` [PATCH v2 for-10.1 1/3] linux-user/aarch64: Clear TPIDR2_EL0 when delivering signals Peter Maydell
2025-07-25 17:57 ` Pierrick Bouvier
2025-07-28 16:10 ` Michael Tokarev
2025-07-31 9:57 ` Peter Maydell
2025-07-25 17:55 ` [PATCH v2 for-10.1 2/3] linux-user/aarch64: Support TPIDR2_MAGIC signal frame record Peter Maydell
2025-07-25 17:57 ` Pierrick Bouvier
2025-07-25 20:20 ` Richard Henderson
2025-07-25 17:55 ` [PATCH v2 for-10.1 3/3] linux-user/aarch64: Support ZT_MAGIC " Peter Maydell
2025-07-25 17:59 ` Pierrick Bouvier
2025-07-25 20:23 ` 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=91da16cb-45ee-446b-97df-95ef956d1386@linaro.org \
--to=richard.henderson@linaro.org \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.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).