]> git.ipfire.org Git - thirdparty/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)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Fri, 30 Nov 2012 21:56:10 +0000 (15:56 -0600)
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
(cherry picked from commit 5232fa59b17b45c04bd24e0d38224964816bf391)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/ppc440_bamboo.c

index c198071170a028cab8ed0902b916e9ec1ad0de1e..928643811e1fd2a6a96838391120e39385f01039 100644 (file)
@@ -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;