pseries: Consolidate construction of /chosen device tree node
commit7c866c6a600e435cf92f764b831d9cb3234ca0b4
authorDavid Gibson <david@gibson.dropbear.id.au>
Mon, 24 Oct 2016 01:05:57 +0000 (24 12:05 +1100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 27 Oct 2016 22:38:26 +0000 (28 09:38 +1100)
tree48017cbb60cb125b67f3a9813add60a0d55129cd
parent9b9a19080a6e548b91420ce7925f2ac81ef63ae8
pseries: Consolidate construction of /chosen device tree node

For historical reasons, building the /chosen node in the guest device tree
is split across several places and includes both parts which write the DT
sequentially and others which use random access functions.

This patch consolidates construction of the node into one place, using
random access functions throughout.

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