diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-12-19 17:57:45 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2023-12-19 17:57:45 +0000 |
commit | 55503372c3454ff0ce86f56866b9dddc2af00d9b (patch) | |
tree | 87b88ca8f0054093ec157807f325afadb1820635 /target/arm/kvm_arm.h | |
parent | e77034f74bfc6afeb5ae56a8fd27815625999002 (diff) | |
download | qemu-55503372c3454ff0ce86f56866b9dddc2af00d9b.zip qemu-55503372c3454ff0ce86f56866b9dddc2af00d9b.tar.gz qemu-55503372c3454ff0ce86f56866b9dddc2af00d9b.tar.bz2 |
target/arm/kvm: Have kvm_arm_pvtime_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-8-philmd@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'target/arm/kvm_arm.h')
-rw-r--r-- | target/arm/kvm_arm.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/target/arm/kvm_arm.h b/target/arm/kvm_arm.h index d6d999b..4404ffe 100644 --- a/target/arm/kvm_arm.h +++ b/target/arm/kvm_arm.h @@ -205,12 +205,12 @@ void kvm_arm_pmu_init(CPUState *cs); /** * kvm_arm_pvtime_init: - * @cs: CPUState + * @cpu: ARMCPU * @ipa: Per-vcpu guest physical base address of the pvtime structures * * Initializes PVTIME for the VCPU, setting the PVTIME IPA to @ipa. */ -void kvm_arm_pvtime_init(CPUState *cs, uint64_t ipa); +void kvm_arm_pvtime_init(ARMCPU *cpu, uint64_t ipa); int kvm_arm_set_irq(int cpu, int irqtype, int irq, int level); @@ -268,7 +268,7 @@ static inline void kvm_arm_pmu_init(CPUState *cs) g_assert_not_reached(); } -static inline void kvm_arm_pvtime_init(CPUState *cs, uint64_t ipa) +static inline void kvm_arm_pvtime_init(ARMCPU *cpu, uint64_t ipa) { g_assert_not_reached(); } |