summaryrefslogtreecommitdiffstats
path: root/hw/ppc/spapr_cpu_core.c
diff options
context:
space:
mode:
authorDavid Gibson2016-10-25 02:51:33 +0200
committerDavid Gibson2016-10-28 00:38:25 +0200
commit997b6cfc3d13aa145fcdbf294521e581d6617bde (patch)
tree211c0e7f35c0b2e329a0fdd9d571cfead428beb9 /hw/ppc/spapr_cpu_core.c
parenttarget-ppc: add vmul10[u,eu,cu,ecu]q instructions (diff)
downloadqemu-997b6cfc3d13aa145fcdbf294521e581d6617bde.tar.gz
qemu-997b6cfc3d13aa145fcdbf294521e581d6617bde.tar.xz
qemu-997b6cfc3d13aa145fcdbf294521e581d6617bde.zip
pseries: Split device tree construction from device tree load
spapr_finalize_fdt() both finishes building the device tree for the guest and loads it into guest memory. For future cleanups, it's going to be more convenient to do these two things separately. The loading portion is pretty trivial, so we move it inline into the caller, ppc_spapr_reset(). We also rename spapr_finalize_fdt(), because the current name is going to become inaccurate. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com> Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Diffstat (limited to 'hw/ppc/spapr_cpu_core.c')
-rw-r--r--hw/ppc/spapr_cpu_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ppc/spapr_cpu_core.c b/hw/ppc/spapr_cpu_core.c
index bc922bc86f..e0c14f6b77 100644
--- a/hw/ppc/spapr_cpu_core.c
+++ b/hw/ppc/spapr_cpu_core.c
@@ -184,7 +184,7 @@ void spapr_core_plug(HotplugHandler *hotplug_dev, DeviceState *dev,
/*
* Setup CPU DT entries only for hotplugged CPUs. For boot time or
- * coldplugged CPUs DT entries are setup in spapr_finalize_fdt().
+ * coldplugged CPUs DT entries are setup in spapr_build_fdt().
*/
if (dev->hotplugged) {
fdt = spapr_populate_hotplug_cpu_dt(cs, &fdt_offset, spapr);