spapr: add dumpdtb support
commitad440b4ae0727dbef5cace419d94d774de96886c
authorAndrew Jones <drjones@redhat.com>
Tue, 1 Sep 2015 01:25:35 +0000 (1 11:25 +1000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 23 Sep 2015 00:51:09 +0000 (23 10:51 +1000)
tree4ab3fb9cc911c0bbd74aa06b696cd93535e4f4b6
parente39432282e2d2db42645c2ce183dfcaa1488752b
spapr: add dumpdtb support

dumpdtb (-machine dumpdtb=<file>) allows one to inspect the generated
device tree of machine types that generate device trees. This is
useful for a) seeing what's there b) debugging/testing device tree
generator patches. It can be used as follows

$QEMU_CMDLINE -machine dumpdtb=dtb
dtc -I dtb -O dts dtb

Signed-off-by: Andrew Jones <drjones@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr.c