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 2/4] arm: Remove CONFIG_FDT conditionals
Date: Fri, 24 May 2013 16:26:55 +0100	[thread overview]
Message-ID: <1369409217-7553-3-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/arm/boot.c |    7 -------
 1 file changed, 7 deletions(-)

diff --git a/hw/arm/boot.c b/hw/arm/boot.c
index f451529..defcf15 100644
--- a/hw/arm/boot.c
+++ b/hw/arm/boot.c
@@ -227,7 +227,6 @@ static void set_kernel_args_old(const struct arm_boot_info *info)
 
 static int load_dtb(hwaddr addr, const struct arm_boot_info *binfo)
 {
-#ifdef CONFIG_FDT
     uint32_t *mem_reg_property;
     uint32_t mem_reg_propsize;
     void *fdt = NULL;
@@ -308,12 +307,6 @@ static int load_dtb(hwaddr addr, const struct arm_boot_info *binfo)
     cpu_physical_memory_write(addr, fdt, size);
 
     return 0;
-
-#else
-    fprintf(stderr, "Device tree requested, "
-                "but qemu was compiled without fdt support\n");
-    return -1;
-#endif
 }
 
 static void do_cpu_reset(void *opaque)
-- 
1.7.9.5

  parent reply	other threads:[~2013-05-24 15:55 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 ` Peter Maydell [this message]
2013-05-28  4:09   ` [Qemu-devel] [PATCH 2/4] arm: Remove CONFIG_FDT conditionals Peter Crosthwaite
2013-05-24 15:26 ` [Qemu-devel] [PATCH 3/4] microblaze: " Peter Maydell
2013-05-28  4:10   ` 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-3-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).