mirror of
https://github.com/qemu/qemu.git
synced 2024-11-25 11:53:39 +08:00
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
This commit is contained in:
parent
21b2f13ae2
commit
5232fa59b1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user