dt: Add -machine dumpdtb option to dump the current dtb
commit25b42708cd011e7d4b37313f7f83ac2551e5370f
authorAlexander Graf <agraf@suse.de>
Thu, 17 May 2012 22:11:33 +0000 (18 00:11 +0200)
committerAlexander Graf <agraf@suse.de>
Sat, 23 Jun 2012 23:04:48 +0000 (24 01:04 +0200)
tree6b82c27d481099d5adaa87f354c777718346ffe0
parent2636fcb6532eafbb3f1fafba69a107664218e3c8
dt: Add -machine dumpdtb option to dump the current dtb

Now that we are dynamically creating the dtb, it's really useful to
be able to dump the created blob for debugging.

This patch implements a -machine dumpdtb=<file> option for e500 that
dumps the dtb exactly in the form the guest would get it to disk. It
can then be analyzed by dtc to get information about the guest
configuration.

Signed-off-by: Alexander Graf <agraf@suse.de>
hw/ppce500_mpc8544ds.c
qemu-config.c