summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGreg Kurz2020-12-09 18:00:49 +0100
committerDavid Gibson2020-12-14 05:54:12 +0100
commitc4c81d7d51dd220fc9957aaf3da3a6eee906bbbb (patch)
tree0f42e57bd089bd0c3cfe817f60954a2b2b55717b /include
parenttarget/ppc: Introduce an mmu_is_64bit() helper (diff)
downloadqemu-c4c81d7d51dd220fc9957aaf3da3a6eee906bbbb.tar.gz
qemu-c4c81d7d51dd220fc9957aaf3da3a6eee906bbbb.tar.xz
qemu-c4c81d7d51dd220fc9957aaf3da3a6eee906bbbb.zip
spapr: Pass sPAPR machine state down to spapr_pci_switch_vga()
This allows to drop a user of qdev_get_machine(). Signed-off-by: Greg Kurz <groug@kaod.org> Message-Id: <20201209170052.1431440-4-groug@kaod.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'include')
-rw-r--r--include/hw/ppc/spapr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hw/ppc/spapr.h b/include/hw/ppc/spapr.h
index b7ced9faeb..e0f10f252c 100644
--- a/include/hw/ppc/spapr.h
+++ b/include/hw/ppc/spapr.h
@@ -834,7 +834,7 @@ int spapr_dma_dt(void *fdt, int node_off, const char *propname,
uint32_t liobn, uint64_t window, uint32_t size);
int spapr_tcet_dma_dt(void *fdt, int node_off, const char *propname,
SpaprTceTable *tcet);
-void spapr_pci_switch_vga(bool big_endian);
+void spapr_pci_switch_vga(SpaprMachineState *spapr, bool big_endian);
void spapr_hotplug_req_add_by_index(SpaprDrc *drc);
void spapr_hotplug_req_remove_by_index(SpaprDrc *drc);
void spapr_hotplug_req_add_by_count(SpaprDrcType drc_type,