From: Richard Henderson <richard.henderson@linaro.org>
To: "Alex Bennée" <alex.bennee@linaro.org>, qemu-devel@nongnu.org
Cc: Peter Maydell <peter.maydell@linaro.org>,
qemu-arm@nongnu.org, 1836078@bugs.launchpad.net
Subject: Re: [Qemu-devel] [PATCH for 4.1] target/arm: report ARMv8.2 FP16 for ARM -cpu max
Date: Thu, 11 Jul 2019 11:51:28 +0200 [thread overview]
Message-ID: <f85b75f3-f903-7bad-d43e-a545cafdb57d@linaro.org> (raw)
In-Reply-To: <20190710172437.628-1-alex.bennee@linaro.org>
On 7/10/19 7:24 PM, Alex Bennée wrote:
> When we converted to using feature bits in 602f6e42cfbf we missed out
> the fact (dp && arm_dc_feature(s, ARM_FEATURE_V8)) was supported for
> -cpu max configurations. This caused a regression in the GCC test
> suite. Fix this by setting the appropriate FP16 bits in mvfr1.FPHP.
>
> Fixes: https://bugs.launchpad.net/qemu/+bug/1836078
> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
> ---
> target/arm/cpu.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/target/arm/cpu.c b/target/arm/cpu.c
> index e75a64a25a..0a0a202fe3 100644
> --- a/target/arm/cpu.c
> +++ b/target/arm/cpu.c
> @@ -2452,6 +2452,10 @@ static void arm_max_initfn(Object *obj)
> t = FIELD_DP32(t, ID_ISAR6, SPECRES, 1);
> cpu->isar.id_isar6 = t;
>
> + t = cpu->isar.mvfr1;
> + t = FIELD_DP32(t, MVFR1, FPHP, 2); /* v8.2 FP16 */
The comment is wrong. This is not full v8.2 FP16 support (which would be value
3, plus a change to SIMDHP), but v8.0 support for double<->half conversions.
Otherwise,
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
r~
next prev parent reply other threads:[~2019-07-11 9:52 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-10 15:08 [Qemu-devel] [Bug 1836078] [NEW] Regressions on arm-linux-gnueabihf target with some GCC tests Christophe Lyon
2019-07-10 15:13 ` [Qemu-devel] [Bug 1836078] " Alex Bennée
2019-07-10 15:42 ` Alex Bennée
2019-07-10 17:08 ` Alex Bennée
2019-07-10 17:23 ` Alex Bennée
2019-07-10 17:24 ` [Qemu-devel] [PATCH for 4.1] target/arm: report ARMv8.2 FP16 for ARM -cpu max Alex Bennée
2019-07-10 17:24 ` [Qemu-devel] [Bug 1836078] " Alex Bennée
2019-07-11 9:51 ` Richard Henderson [this message]
2019-07-11 10:32 ` [Qemu-devel] " Alex Bennée
2019-07-11 10:32 ` [Qemu-devel] [Bug 1836078] " Alex Bennée
2019-07-11 10:37 ` [Qemu-devel] [PATCH v2 for 4.1] target/arm: report ARMv8-A FP support for AArch32 " Alex Bennée
2019-07-11 10:37 ` [Qemu-devel] [Bug 1836078] " Alex Bennée
2019-07-11 14:38 ` [Qemu-devel] " Peter Maydell
2019-07-11 14:38 ` [Qemu-devel] [Bug 1836078] " Peter Maydell
2019-07-12 14:16 ` [Qemu-devel] [Bug 1836078] Re: Regressions on arm-linux-gnueabihf target with some GCC tests Christophe Lyon
2019-07-12 17:18 ` Alex Bennée
2019-07-15 15:03 ` Alex Bennée
2019-08-16 5:05 ` Thomas Huth
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=f85b75f3-f903-7bad-d43e-a545cafdb57d@linaro.org \
--to=richard.henderson@linaro.org \
--cc=1836078@bugs.launchpad.net \
--cc=alex.bennee@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).