Received: from eggs.gnu.org ([2001:4830:134:3::10]:35262) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UnVOL-0006ln-Dx for qemu-devel@nongnu.org; Fri, 14 Jun 2013 10:54:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UnVOG-0006wz-SJ for qemu-devel@nongnu.org; Fri, 14 Jun 2013 10:54:17 -0400 Received: from 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.d.1.0.0.b.8.0.1.0.0.2.ip6.arpa ([2001:8b0:1d0::1]:57990 helo=mnementh.archaic.org.uk) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UnVOG-0006wb-N1 for qemu-devel@nongnu.org; Fri, 14 Jun 2013 10:54:12 -0400 From: Peter Maydell Date: Fri, 14 Jun 2013 15:53:13 +0100 Message-Id: <1371221594-11556-10-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1371221594-11556-1-git-send-email-peter.maydell@linaro.org> References: <1371221594-11556-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PULL 09/10] microblaze: Remove CONFIG_FDT conditionals List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: qemu-devel@nongnu.org Now that we know we're compiling with libfdt we can remove the CONFIG_FDT conditionals. Signed-off-by: Peter Maydell Reviewed-by: Edgar E. Iglesias Reviewed-by: Peter Crosthwaite Tested-by: Edgar E. Iglesias Message-id: 1369409217-7553-4-git-send-email-peter.maydell@linaro.org --- hw/microblaze/boot.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/hw/microblaze/boot.c b/hw/microblaze/boot.c index e543d88..3f1d70e 100644 --- a/hw/microblaze/boot.c +++ b/hw/microblaze/boot.c @@ -61,7 +61,6 @@ static int microblaze_load_dtb(hwaddr addr, const char *dtb_filename) { int fdt_size; -#ifdef CONFIG_FDT void *fdt = NULL; int r; @@ -81,17 +80,6 @@ static int microblaze_load_dtb(hwaddr addr, } cpu_physical_memory_write(addr, fdt, fdt_size); -#else - /* We lack libfdt so we cannot manipulate the fdt. Just pass on the blob - to the kernel. */ - if (dtb_filename) { - fdt_size = load_image_targphys(dtb_filename, addr, 0x10000); - } - if (kernel_cmdline) { - fprintf(stderr, - "Warning: missing libfdt, cannot pass cmdline to kernel!\n"); - } -#endif return fdt_size; } -- 1.7.9.5