[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PULL 07/33] spapr: add dumpdtb support
From: |
David Gibson |
Subject: |
[Qemu-ppc] [PULL 07/33] spapr: add dumpdtb support |
Date: |
Mon, 21 Sep 2015 11:06:02 +1000 |
From: Andrew Jones <address@hidden>
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 <address@hidden>
Reviewed-by: David Gibson <address@hidden>
Signed-off-by: David Gibson <address@hidden>
---
hw/ppc/spapr.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c
index f91058c..e0f7b54 100644
--- a/hw/ppc/spapr.c
+++ b/hw/ppc/spapr.c
@@ -30,6 +30,7 @@
#include "hw/fw-path-provider.h"
#include "elf.h"
#include "net/net.h"
+#include "sysemu/device_tree.h"
#include "sysemu/block-backend.h"
#include "sysemu/cpus.h"
#include "sysemu/kvm.h"
@@ -831,6 +832,7 @@ static void spapr_finalize_fdt(sPAPRMachineState *spapr,
exit(1);
}
+ qemu_fdt_dumpdtb(fdt, fdt_totalsize(fdt));
cpu_physical_memory_write(fdt_addr, fdt, fdt_totalsize(fdt));
g_free(bootlist);
--
2.4.3
- [Qemu-ppc] [PULL 00/33] spapr-next queue 2015-09-16, David Gibson, 2015/09/20
- [Qemu-ppc] [PULL 01/33] spapr: Provide an error message when migration fails due to htab_shift mismatch, David Gibson, 2015/09/20
- [Qemu-ppc] [PULL 05/33] spapr: Make ibm, change-msi respect 3 return values, David Gibson, 2015/09/20
- [Qemu-ppc] [PULL 08/33] spapr_drc: Fix potential undefined behaviour, David Gibson, 2015/09/20
- [Qemu-ppc] [PULL 07/33] spapr: add dumpdtb support,
David Gibson <=
- [Qemu-ppc] [PULL 03/33] spapr: Add /ibm,partition-name, David Gibson, 2015/09/20
- [Qemu-ppc] [PULL 10/33] spapr_rtas: Prevent QEMU crash during hotplug without a prior device_add, David Gibson, 2015/09/20
- [Qemu-ppc] [PULL 06/33] spapr: SPLPAR Characteristics, David Gibson, 2015/09/20
- [Qemu-ppc] [PULL 09/33] ppc/spapr: Use qemu_log_mask() for hcall_dprintf(), David Gibson, 2015/09/20
- [Qemu-ppc] [PULL 04/33] spapr: Add /rtas/ibm,change-msix-capable, David Gibson, 2015/09/20
- [Qemu-ppc] [PULL 16/33] spapr_pci: fix device tree props for MSI/MSI-X, David Gibson, 2015/09/20
- [Qemu-ppc] [PULL 14/33] pseries: Fix incorrect calculation of threads per socket for chip-id, David Gibson, 2015/09/20
- [Qemu-ppc] [PULL 02/33] spapr: Create pseries-2.5 machine, David Gibson, 2015/09/20
- [Qemu-ppc] [PULL 11/33] sPAPR: Introduce rtas_ldq(), David Gibson, 2015/09/20
- [Qemu-ppc] [PULL 27/33] spapr: Provide better error message when slots exceed max allowed, David Gibson, 2015/09/20