qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Peter Maydell <peter.maydell@linaro.org>
To: qemu-devel@nongnu.org
Cc: "Anthony Liguori" <aliguori@us.ibm.com>,
	patches@linaro.org, "Alexander Graf" <agraf@suse.de>,
	"Andreas Färber" <andreas.faerber@web.de>,
	qemu-ppc@nongnu.org,
	"Peter Crosthwaite" <peter.crosthwaite@xilinx.com>,
	"Edgar E. Iglesias" <edgar.iglesias@gmail.com>
Subject: [Qemu-devel] [PATCH 3/4] microblaze: Remove CONFIG_FDT conditionals
Date: Fri, 24 May 2013 16:26:56 +0100	[thread overview]
Message-ID: <1369409217-7553-4-git-send-email-peter.maydell@linaro.org> (raw)
In-Reply-To: <1369409217-7553-1-git-send-email-peter.maydell@linaro.org>

Now that we know we're compiling with libfdt we can remove the
CONFIG_FDT conditionals.

Signed-off-by: Peter Maydell <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

  parent reply	other threads:[~2013-05-24 15:27 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-24 15:26 [Qemu-devel] [PATCH 0/4] Require libfdt for arm/microblaze/ppc softmmu targets Peter Maydell
2013-05-24 15:26 ` [Qemu-devel] [PATCH 1/4] configure: Require libfdt for arm, ppc, microblaze " Peter Maydell
2013-05-28  4:07   ` Peter Crosthwaite
2013-05-28  9:03   ` Andreas Färber
2013-05-28  9:39     ` Peter Maydell
2013-05-24 15:26 ` [Qemu-devel] [PATCH 2/4] arm: Remove CONFIG_FDT conditionals Peter Maydell
2013-05-28  4:09   ` Peter Crosthwaite
2013-05-24 15:26 ` Peter Maydell [this message]
2013-05-28  4:10   ` [Qemu-devel] [PATCH 3/4] microblaze: " Peter Crosthwaite
2013-05-24 15:26 ` [Qemu-devel] [PATCH 4/4] ppc: " Peter Maydell
2013-05-25 12:32 ` [Qemu-devel] [PATCH 0/4] Require libfdt for arm/microblaze/ppc softmmu targets Edgar E. Iglesias

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1369409217-7553-4-git-send-email-peter.maydell@linaro.org \
    --to=peter.maydell@linaro.org \
    --cc=agraf@suse.de \
    --cc=aliguori@us.ibm.com \
    --cc=andreas.faerber@web.de \
    --cc=edgar.iglesias@gmail.com \
    --cc=patches@linaro.org \
    --cc=peter.crosthwaite@xilinx.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-ppc@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).