From: Alexander Graf Date: Sat, 6 Oct 2012 00:02:05 +0000 (+0200) Subject: PPC: Bamboo: Fix memory size DT property X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=5232fa59b17b45c04bd24e0d38224964816bf391;p=people%2Fliuw%2Flibxenctrl-split%2Fqemu-xen.git PPC: Bamboo: Fix memory size DT property 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 --- diff --git a/hw/ppc440_bamboo.c b/hw/ppc440_bamboo.c index a6b1d51fa..cc85607cb 100644 --- a/hw/ppc440_bamboo.c +++ b/hw/ppc440_bamboo.c @@ -59,7 +59,7 @@ static int bamboo_load_device_tree(hwaddr 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;