mirror of
https://github.com/mii443/qemu.git
synced 2025-12-03 19:18:23 +00:00
target/arm: Reinstate "vfp" property on AArch32 CPUs
In commit4315f7c614we 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:4315f7c614("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> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20240126193432.2210558-1-peter.maydell@linaro.org (cherry picked from commit185e3fdf8d) Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
committed by
Michael Tokarev
parent
2d0530abe2
commit
de6992d390
@@ -1615,6 +1615,10 @@ void arm_cpu_post_init(Object *obj)
|
|||||||
}
|
}
|
||||||
} else if (cpu_isar_feature(aa32_vfp, cpu)) {
|
} else if (cpu_isar_feature(aa32_vfp, cpu)) {
|
||||||
cpu->has_vfp = true;
|
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)) {
|
if (cpu_isar_feature(aa32_simd_r32, cpu)) {
|
||||||
cpu->has_vfp_d32 = true;
|
cpu->has_vfp_d32 = true;
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user