Patchwork [2/2] ARM: Add dumpdtb support

login
register
mail settings
Submitter Alexander Graf
Date Sept. 23, 2012, 6:41 a.m.
Message ID <1348382519-2167-2-git-send-email-agraf@suse.de>
Download mbox | patch
Permalink /patch/186488/
State New
Headers show

Comments

Alexander Graf - Sept. 23, 2012, 6:41 a.m.
This patch adds support for the dumpdtb machine option to all ARM boards that
have device tree support.

Signed-off-by: Alexander Graf <agraf@suse.de>
---
 hw/arm_boot.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch

diff --git a/hw/arm_boot.c b/hw/arm_boot.c
index a6e9143..0830a62 100644
--- a/hw/arm_boot.c
+++ b/hw/arm_boot.c
@@ -294,6 +294,7 @@  static int load_dtb(target_phys_addr_t addr, const struct arm_boot_info *binfo)
         }
     }
 
+    qemu_devtree_dumpdtb(fdt, size);
     cpu_physical_memory_write(addr, fdt, size);
 
     return 0;