diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-12-19 17:57:46 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2023-12-19 17:57:46 +0000 |
commit | d344f5ba87dc8a91adef4ed80e6c82674ca93e2e (patch) | |
tree | 6f4a4d2ea9804f7900214fe4d2e821cbf2e2c97f /hw/arm/virt.c | |
parent | 55503372c3454ff0ce86f56866b9dddc2af00d9b (diff) | |
download | qemu-d344f5ba87dc8a91adef4ed80e6c82674ca93e2e.zip qemu-d344f5ba87dc8a91adef4ed80e6c82674ca93e2e.tar.gz qemu-d344f5ba87dc8a91adef4ed80e6c82674ca93e2e.tar.bz2 |
target/arm/kvm: Have kvm_arm_pmu_init take a ARMCPU argument
Unify the "kvm_arm.h" API: All functions related to ARM vCPUs
take a ARMCPU* argument. Use the CPU() QOM cast macro When
calling the generic vCPU API from "sysemu/kvm.h".
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Message-id: 20231123183518.64569-9-philmd@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/arm/virt.c')
-rw-r--r-- | hw/arm/virt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/arm/virt.c b/hw/arm/virt.c index b6efe9d..63f3c0b 100644 --- a/hw/arm/virt.c +++ b/hw/arm/virt.c @@ -2000,7 +2000,7 @@ static void virt_cpu_post_init(VirtMachineState *vms, MemoryRegion *sysmem) if (kvm_irqchip_in_kernel()) { kvm_arm_pmu_set_irq(cpu, VIRTUAL_PMU_IRQ); } - kvm_arm_pmu_init(cpu); + kvm_arm_pmu_init(ARM_CPU(cpu)); } if (steal_time) { kvm_arm_pvtime_init(ARM_CPU(cpu), pvtime_reg_base |