diff options
author | Alexander Graf <agraf@suse.de> | 2012-10-06 02:02:05 +0200 |
---|---|---|
committer | Michael Roth <mdroth@linux.vnet.ibm.com> | 2012-11-30 15:56:10 -0600 |
commit | db6e5ab78efd1d0c07945fcff6f42e9acb8929ed (patch) | |
tree | 4f0eec8dfdeef93399715e2fc85bc4114af788ec | |
parent | 7817b8d858852adb2ae93f2af8c7f2a1198f4f61 (diff) | |
download | qemu-db6e5ab78efd1d0c07945fcff6f42e9acb8929ed.tar.gz |
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)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
-rw-r--r-- | hw/ppc440_bamboo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ppc440_bamboo.c b/hw/ppc440_bamboo.c index c198071170..928643811e 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; |