ARM: Allow dumping of device tree
authorJohn Rigby <john.rigby@linaro.org>
Tue, 25 Jun 2013 17:34:13 +0000 (18:34 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 25 Jun 2013 17:34:13 +0000 (18:34 +0100)
By calling qemu_devtree_dumpdtb near the end of load_dtb.

Signed-off-by: John Rigby <john.rigby@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/boot.c

index defcf15..797c691 100644 (file)
@@ -303,6 +303,7 @@ static int load_dtb(hwaddr addr, const struct arm_boot_info *binfo)
             fprintf(stderr, "couldn't set /chosen/linux,initrd-end\n");
         }
     }
+    qemu_devtree_dumpdtb(fdt, size);
 
     cpu_physical_memory_write(addr, fdt, size);