From: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
To: Richard Henderson <richard.henderson@linaro.org>, qemu-devel@nongnu.org
Cc: qemu-arm@nongnu.org, qemu-stable@nongnu.org
Subject: Re: [PATCH] target/arm: Disable SVE extensions when SVE is disabled
Date: Sun, 26 May 2024 23:06:35 +0200 [thread overview]
Message-ID: <63ff94b6-98df-4e5e-9c53-7a03c7309cd3@linaro.org> (raw)
In-Reply-To: <20240526204551.553282-1-richard.henderson@linaro.org>
W dniu 26.05.2024 o 22:45, Richard Henderson pisze:
> From: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
>
> Cc: qemu-stable@nongnu.org
> Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2304
> Reported-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
> ---
>
> Marcin added the correct patch to the issue 3 weeks ago, so I'm giving
> him authorship here. I only updated the comment a bit.
I am not fully sure is it everything needed to be honest.
Value 0x0000 in [3:0] means "The SVE instructions are implemented".
The way why it works is probably because QEMU keeps "there is no SVE"
information separately and do not emulate them.
> Marcin, if you'd reply to this with your s-o-b, that would be helpful.
done
> r~
>
> ---
> target/arm/cpu64.c | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/target/arm/cpu64.c b/target/arm/cpu64.c
> index c15d086049..862d2b92fa 100644
> --- a/target/arm/cpu64.c
> +++ b/target/arm/cpu64.c
> @@ -109,7 +109,11 @@ void arm_cpu_sve_finalize(ARMCPU *cpu, Error **errp)
> * No explicit bits enabled, and no implicit bits from sve-max-vq.
> */
> if (!cpu_isar_feature(aa64_sve, cpu)) {
> - /* SVE is disabled and so are all vector lengths. Good. */
> + /*
> + * SVE is disabled and so are all vector lengths. Good.
> + * Disable all SVE extensions as well.
> + */
> + cpu->isar.id_aa64zfr0 = 0;
> return;
> }
>
next prev parent reply other threads:[~2024-05-26 21:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-26 20:45 [PATCH] target/arm: Disable SVE extensions when SVE is disabled Richard Henderson
2024-05-26 21:06 ` Marcin Juszkiewicz [this message]
2024-05-27 0:57 ` Richard Henderson
2024-05-30 14:47 ` Peter Maydell
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=63ff94b6-98df-4e5e-9c53-7a03c7309cd3@linaro.org \
--to=marcin.juszkiewicz@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-stable@nongnu.org \
--cc=richard.henderson@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;
as well as URLs for NNTP newsgroup(s).