qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] target/arm: Reinstate "vfp" property on AArch32 CPUs
@ 2024-01-26 19:34 Peter Maydell
  2024-01-27  4:05 ` Richard Henderson
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Maydell @ 2024-01-26 19:34 UTC (permalink / raw)
  To: qemu-arm, qemu-devel; +Cc: Richard Henderson

In commit 4315f7c614743 we restructured the logic for creating the
VFP related properties to avoid testing the aa32_simd_r32 feature on
AArch64 CPUs.  However in the process we accidentally stopped
exposing the "vfp" QOM property on AArch32 TCG CPUs.

This mostly hasn't had any ill effects because not many people want
to disable VFP, but it wasn't intentional.  Reinstate the property.

Cc: qemu-stable@nongnu.org
Fixes: 4315f7c614743 ("target/arm: Restructure has_vfp_d32 test")
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2098
Signed-off-by: Peter Maydell <peter.maydell@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 593695b4247..2bed5987619 100644
--- a/target/arm/cpu.c
+++ b/target/arm/cpu.c
@@ -1620,6 +1620,10 @@ void arm_cpu_post_init(Object *obj)
         }
     } else if (cpu_isar_feature(aa32_vfp, cpu)) {
         cpu->has_vfp = true;
+        if (tcg_enabled() || qtest_enabled()) {
+            qdev_property_add_static(DEVICE(obj),
+                                     &arm_cpu_has_vfp_property);
+        }
         if (cpu_isar_feature(aa32_simd_r32, cpu)) {
             cpu->has_vfp_d32 = true;
             /*
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] target/arm: Reinstate "vfp" property on AArch32 CPUs
  2024-01-26 19:34 [PATCH] target/arm: Reinstate "vfp" property on AArch32 CPUs Peter Maydell
@ 2024-01-27  4:05 ` Richard Henderson
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Henderson @ 2024-01-27  4:05 UTC (permalink / raw)
  To: Peter Maydell, qemu-arm, qemu-devel

On 1/27/24 05:34, Peter Maydell wrote:
> In commit 4315f7c614743 we restructured the logic for creating the
> VFP related properties to avoid testing the aa32_simd_r32 feature on
> AArch64 CPUs.  However in the process we accidentally stopped
> exposing the "vfp" QOM property on AArch32 TCG CPUs.
> 
> This mostly hasn't had any ill effects because not many people want
> to disable VFP, but it wasn't intentional.  Reinstate the property.
> 
> Cc:qemu-stable@nongnu.org
> Fixes: 4315f7c614743 ("target/arm: Restructure has_vfp_d32 test")
> Resolves:https://gitlab.com/qemu-project/qemu/-/issues/2098
> Signed-off-by: Peter Maydell<peter.maydell@linaro.org>
> ---
>   target/arm/cpu.c | 4 ++++
>   1 file changed, 4 insertions(+)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-01-27  4:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-26 19:34 [PATCH] target/arm: Reinstate "vfp" property on AArch32 CPUs Peter Maydell
2024-01-27  4:05 ` Richard Henderson

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).