summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2012-10-06 02:02:05 +0200
committerDoug Goldstein <cardoe@cardoe.com>2012-11-21 15:26:25 -0600
commit5e1de5b0f6a977ab36d887b1f9c0d87453f83233 (patch)
treefc44a9937a5a38f9cd3017bf6c443630b7c7e948
parents390x: fix -initrd in virtio machine (diff)
downloadqemu-kvm-5e1de5b0f6a977ab36d887b1f9c0d87453f83233.tar.gz
qemu-kvm-5e1de5b0f6a977ab36d887b1f9c0d87453f83233.tar.bz2
qemu-kvm-5e1de5b0f6a977ab36d887b1f9c0d87453f83233.zip
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 (cherry picked from commit 5232fa59b17b45c04bd24e0d38224964816bf391)
-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 f0a3ae49e..083322814 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;