mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
spapr: Eliminate nr_irqs parameter to SpaprIrq::init
The only reason this parameter was needed was to work around the inconsistent meaning of nr_irqs between xics and xive. Now that we've fixed that, we can consistently use the number directly in the SpaprIrq configuration. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Reviewed-by: Cédric Le Goater <clg@kaod.org> Reviewed-by: Greg Kurz <groug@kaod.org>
This commit is contained in:
parent
ad8de98636
commit
fe9b61b246
2 changed files with 11 additions and 12 deletions
|
@ -41,7 +41,7 @@ typedef struct SpaprIrq {
|
|||
uint32_t nr_msis;
|
||||
uint8_t ov5;
|
||||
|
||||
void (*init)(SpaprMachineState *spapr, int nr_irqs, Error **errp);
|
||||
void (*init)(SpaprMachineState *spapr, Error **errp);
|
||||
int (*claim)(SpaprMachineState *spapr, int irq, bool lsi, Error **errp);
|
||||
void (*free)(SpaprMachineState *spapr, int irq, int num);
|
||||
qemu_irq (*qirq)(SpaprMachineState *spapr, int irq);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue