]> git.proxmox.com Git - qemu.git/blobdiff - hw/arm/boot.c
arm/boot: Allow boards to modify the FDT blob
[qemu.git] / hw / arm / boot.c
index 1780316afb348e3d369464e964c5eb729e536a60..9fbe5d22a581c503fa51a3ce68a3c13235b55e7d 100644 (file)
@@ -294,6 +294,11 @@ static int load_dtb(hwaddr addr, const struct arm_boot_info *binfo)
             goto fail;
         }
     }
+
+    if (binfo->modify_dtb) {
+        binfo->modify_dtb(binfo, fdt);
+    }
+
     qemu_devtree_dumpdtb(fdt, size);
 
     cpu_physical_memory_write(addr, fdt, size);