aboutsummaryrefslogtreecommitdiff
path: root/hw/ppc440_bamboo.c
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2012-10-06 02:02:05 +0200
committerAlexander Graf <agraf@suse.de>2012-10-29 11:45:54 +0100
commit5232fa59b17b45c04bd24e0d38224964816bf391 (patch)
tree5df404141eab3c7f83e7bc50dc2196c2387ec011 /hw/ppc440_bamboo.c
parent21b2f13ae21974e0fd7f8da99d84628a8000d1d7 (diff)
downloadqemu-5232fa59b17b45c04bd24e0d38224964816bf391.zip
qemu-5232fa59b17b45c04bd24e0d38224964816bf391.tar.gz
qemu-5232fa59b17b45c04bd24e0d38224964816bf391.tar.bz2
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 <agraf@suse.de> CC: qemu-stable@nongnu.org
Diffstat (limited to 'hw/ppc440_bamboo.c')
-rw-r--r--hw/ppc440_bamboo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ppc440_bamboo.c b/hw/ppc440_bamboo.c
index a6b1d51..cc85607 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;