diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2019-09-27 13:44:58 +1000 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2019-10-24 09:36:55 +1100 |
commit | 8cbe71ecb8c1336b5ef96d64771608e02d88d4e3 (patch) | |
tree | ea0c5a1902b5247059972242f5c86576ca8ea23c /include/hw/pci-host | |
parent | 605994e5b7d17dcc275465b4f89816d29105b238 (diff) | |
download | qemu-8cbe71ecb8c1336b5ef96d64771608e02d88d4e3.zip qemu-8cbe71ecb8c1336b5ef96d64771608e02d88d4e3.tar.gz qemu-8cbe71ecb8c1336b5ef96d64771608e02d88d4e3.tar.bz2 |
spapr: Remove SpaprIrq::nr_msis
The nr_msis value we use here has to line up with whether we're using
legacy or modern irq allocation. Therefore it's safer to derive it based
on legacy_irq_allocation rather than having SpaprIrq contain a canned
value.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Greg Kurz <groug@kaod.org>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Diffstat (limited to 'include/hw/pci-host')
-rw-r--r-- | include/hw/pci-host/spapr.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/hw/pci-host/spapr.h b/include/hw/pci-host/spapr.h index 23506f0..8877ff5 100644 --- a/include/hw/pci-host/spapr.h +++ b/include/hw/pci-host/spapr.h @@ -128,8 +128,8 @@ struct SpaprPhbState { #define SPAPR_PCI_NV2ATSD_WIN_SIZE (NVGPU_MAX_NUM * NVGPU_MAX_LINKS * \ 64 * KiB) -int spapr_dt_phb(SpaprPhbState *phb, uint32_t intc_phandle, void *fdt, - uint32_t nr_msis, int *node_offset); +int spapr_dt_phb(SpaprMachineState *spapr, SpaprPhbState *phb, + uint32_t intc_phandle, void *fdt, int *node_offset); void spapr_pci_rtas_init(void); |