]> git.proxmox.com Git - mirror_qemu.git/commitdiff
PPC: Bamboo: Fix memory size DT property
authorAlexander Graf <agraf@suse.de>
Sat, 6 Oct 2012 00:02:05 +0000 (02:02 +0200)
committerAlexander Graf <agraf@suse.de>
Mon, 29 Oct 2012 10:45:54 +0000 (11:45 +0100)
Device tree properties need to be specified in big endian. Fix the
bamboo memory size property accordingly.

Signed-off-by: Alexander Graf <agraf@suse.de>
CC: qemu-stable@nongnu.org
hw/ppc440_bamboo.c

index a6b1d51faeaf3b733bb2a82a4b7e5094cd69678a..cc85607cb7d5196d6a8dedf940296ce9deafe63a 100644 (file)
@@ -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;