[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 09/32] hw/arm/virt: Remove VirtMachineClass::no_pmu field
From: |
Peter Maydell |
Subject: |
[PULL 09/32] hw/arm/virt: Remove VirtMachineClass::no_pmu field |
Date: |
Tue, 6 May 2025 15:41:51 +0100 |
From: Philippe Mathieu-Daudé <philmd@linaro.org>
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>
---
include/hw/arm/virt.h | 1 -
hw/arm/virt.c | 4 ----
2 files changed, 5 deletions(-)
diff --git a/include/hw/arm/virt.h b/include/hw/arm/virt.h
index c8e94e6aedc..27c5bb585cb 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;
diff --git a/hw/arm/virt.c b/hw/arm/virt.c
index 17a88aa9b25..e82b8a45664 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);
}
--
2.43.0
- [PULL 00/32] target-arm queue, Peter Maydell, 2025/05/06
- [PULL 03/32] hvf: only update sysreg from owning thread, Peter Maydell, 2025/05/06
- [PULL 09/32] hw/arm/virt: Remove VirtMachineClass::no_pmu field,
Peter Maydell <=
- [PULL 01/32] hw/arm/npcm8xx_boards: Correct valid_cpu_types setting of NPCM8XX SoC, Peter Maydell, 2025/05/06
- [PULL 04/32] target/arm/ptw: extract arm_mmu_idx_to_security_space, Peter Maydell, 2025/05/06
- [PULL 07/32] target/arm/ptw: fix arm_cpu_get_phys_page_attrs_debug, Peter Maydell, 2025/05/06
- [PULL 12/32] hw/arm/virt: Remove VirtMachineClass::no_its field, Peter Maydell, 2025/05/06
- [PULL 14/32] hw/arm/virt: Remove VirtMachineClass::claim_edge_triggered_timers field, Peter Maydell, 2025/05/06
- [PULL 18/32] hw/arm/virt: Remove VirtMachineClass::smbios_old_sys_ver field, Peter Maydell, 2025/05/06
- [PULL 22/32] hw/arm: Attach PSPI module to NPCM8XX SoC, Peter Maydell, 2025/05/06
- [PULL 25/32] target/arm/kvm: Drop support for kernels without KVM_ARM_PREFERRED_TARGET, Peter Maydell, 2025/05/06
- [PULL 27/32] hw/pci-host/designware: Fix viewport configuration, Peter Maydell, 2025/05/06
- [PULL 28/32] hw/gpio/imx_gpio: Fix interpretation of GDIR polarity, Peter Maydell, 2025/05/06