diff options
author | Andrew Jones | 2017-09-04 16:21:54 +0200 |
---|---|---|
committer | Peter Maydell | 2017-09-04 16:21:54 +0200 |
commit | 3f07cb2aabdfcc27ee30cf85c39619a82d364f83 (patch) | |
tree | c62d128a9af401a6f2e40359f4a1b032967ea909 /target/arm/kvm_arm.h | |
parent | hw/arm/virt: add pmu interrupt state (diff) | |
download | qemu-3f07cb2aabdfcc27ee30cf85c39619a82d364f83.tar.gz qemu-3f07cb2aabdfcc27ee30cf85c39619a82d364f83.tar.xz qemu-3f07cb2aabdfcc27ee30cf85c39619a82d364f83.zip |
target/arm/kvm: pmu: split init and set-irq stages
When adding a PMU with a userspace irqchip we skip the set-irq
stage of device creation. Split the 'create' function into two
functions 'init' and 'set-irq' so they may be called separately.
Signed-off-by: Andrew Jones <drjones@redhat.com>
Reviewed-by: Christoffer Dall <cdall@linaro.org>
Message-id: 1500471597-2517-3-git-send-email-drjones@redhat.com
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 | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/target/arm/kvm_arm.h b/target/arm/kvm_arm.h index 633d08828a..cab5ea9be5 100644 --- a/target/arm/kvm_arm.h +++ b/target/arm/kvm_arm.h @@ -195,7 +195,8 @@ int kvm_arm_sync_mpstate_to_qemu(ARMCPU *cpu); int kvm_arm_vgic_probe(void); -int kvm_arm_pmu_create(CPUState *cs, int irq); +int kvm_arm_pmu_set_irq(CPUState *cs, int irq); +int kvm_arm_pmu_init(CPUState *cs); #else @@ -204,7 +205,12 @@ static inline int kvm_arm_vgic_probe(void) return 0; } -static inline int kvm_arm_pmu_create(CPUState *cs, int irq) +static inline int kvm_arm_pmu_set_irq(CPUState *cs, int irq) +{ + return 0; +} + +static inline int kvm_arm_pmu_init(CPUState *cs) { return 0; } |