summaryrefslogtreecommitdiffstats
path: root/hw/ppce500_mpc8544ds.c
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2012-05-17 14:49:20 +0200
committerAlexander Graf <agraf@suse.de>2012-06-24 01:04:47 +0200
commitf5231aafbfcbf4c43c7612785daa8f26e54ab5bb (patch)
tree31e456c38a14057301af31b5d53793f9f269f309 /hw/ppce500_mpc8544ds.c
parent51b852b74c999f099338fba1b26bbbb4ab8a0bd4 (diff)
downloadhqemu-f5231aafbfcbf4c43c7612785daa8f26e54ab5bb.zip
hqemu-f5231aafbfcbf4c43c7612785daa8f26e54ab5bb.tar.gz
PPC: e500: dt: create /chosen node dynamically
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'hw/ppce500_mpc8544ds.c')
-rw-r--r--hw/ppce500_mpc8544ds.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/ppce500_mpc8544ds.c b/hw/ppce500_mpc8544ds.c
index 28c7c8c..a078e24 100644
--- a/hw/ppce500_mpc8544ds.c
+++ b/hw/ppce500_mpc8544ds.c
@@ -101,6 +101,7 @@ static int mpc8544_load_device_tree(CPUPPCState *env,
qemu_devtree_setprop(fdt, "/memory", "reg", mem_reg_property,
sizeof(mem_reg_property));
+ qemu_devtree_add_subnode(fdt, "/chosen");
if (initrd_size) {
ret = qemu_devtree_setprop_cell(fdt, "/chosen", "linux,initrd-start",
initrd_base);
OpenPOWER on IntegriCloud