mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
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>
This commit is contained in:
parent
07f48730bc
commit
3f07cb2aab
4 changed files with 53 additions and 36 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue