From patchwork Sat Oct 6 00:19:22 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: PPC: Bamboo: Fix memory size DT property Date: Fri, 05 Oct 2012 14:19:22 -0000 From: Alexander Graf X-Patchwork-Id: 189634 Message-Id: <1349482762-25765-1-git-send-email-agraf@suse.de> To: qemu-devel qemu-devel Cc: Richard Zenkert , "qemu-ppc@nongnu.org List" , qemu-stable@nongnu.org Device tree properties need to be specified in big endian. Fix the bamboo memory size property accordingly. Signed-off-by: Alexander Graf CC: qemu-stable@nongnu.org --- hw/ppc440_bamboo.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/ppc440_bamboo.c b/hw/ppc440_bamboo.c index c198071..9286438 100644 --- a/hw/ppc440_bamboo.c +++ b/hw/ppc440_bamboo.c @@ -59,7 +59,7 @@ static int bamboo_load_device_tree(target_phys_addr_t addr, { int ret = -1; #ifdef CONFIG_FDT - uint32_t mem_reg_property[] = { 0, 0, ramsize }; + uint32_t mem_reg_property[] = { 0, 0, cpu_to_be32(ramsize) }; char *filename; int fdt_size; void *fdt;