pseries: Make spapr_create_fdt_skel() get information from machine state
commita19f7fb0456b3d1329a2086d81418a49c1eae9b9
authorDavid Gibson <david@gibson.dropbear.id.au>
Thu, 20 Oct 2016 04:31:45 +0000 (20 15:31 +1100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 27 Oct 2016 22:38:25 +0000 (28 09:38 +1100)
treee876fa391001880ba961006e33975bed4f79e776
parentcae172ab6daa18e1edc789c237a11d6dbc858ee0
pseries: Make spapr_create_fdt_skel() get information from machine state

Currently spapr_create_fdt_skel() takes a bunch of individual parameters
for various things it will put in the device tree.  Some of these can
already be taken directly from sPAPRMachineState.  This patch alters it so
that all of them can be taken from there, which will allow this code to
be moved away from its current caller in future.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/ppc/spapr.c
include/hw/ppc/spapr.h