diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-01-16 15:59:33 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2025-05-06 15:01:22 +0100 |
commit | 514712d5277de5237a49a4852f0f90c51696f94c (patch) | |
tree | a101c2de715fd105d786076d31d8b16e922f20f9 | |
parent | 1731ec33c38ccc9b7629182e896737d2e31789c0 (diff) | |
download | qemu-514712d5277de5237a49a4852f0f90c51696f94c.zip qemu-514712d5277de5237a49a4852f0f90c51696f94c.tar.gz qemu-514712d5277de5237a49a4852f0f90c51696f94c.tar.bz2 |
hw/arm/virt: Remove VirtMachineClass::no_pmu field
The VirtMachineClass::no_pmu field was only used by
virt-2.6 machine, which got removed. Remove it and
simplify machvirt_init().
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r-- | hw/arm/virt.c | 4 | ||||
-rw-r--r-- | include/hw/arm/virt.h | 1 |
2 files changed, 0 insertions, 5 deletions
diff --git a/hw/arm/virt.c b/hw/arm/virt.c index 17a88aa..e82b8a4 100644 --- a/hw/arm/virt.c +++ b/hw/arm/virt.c @@ -2273,10 +2273,6 @@ static void machvirt_init(MachineState *machine) object_property_set_bool(cpuobj, "kvm-steal-time", false, NULL); } - if (vmc->no_pmu && object_property_find(cpuobj, "pmu")) { - object_property_set_bool(cpuobj, "pmu", false, NULL); - } - if (vmc->no_tcg_lpa2 && object_property_find(cpuobj, "lpa2")) { object_property_set_bool(cpuobj, "lpa2", false, NULL); } diff --git a/include/hw/arm/virt.h b/include/hw/arm/virt.h index c8e94e6..27c5bb5 100644 --- a/include/hw/arm/virt.h +++ b/include/hw/arm/virt.h @@ -120,7 +120,6 @@ struct VirtMachineClass { bool disallow_affinity_adjustment; bool no_its; bool no_tcg_its; - bool no_pmu; bool claim_edge_triggered_timers; bool smbios_old_sys_ver; bool no_highmem_compact; |