PPC: e500: dt: create /cpus node dynamically

Signed-off-by: Alexander Graf <agraf@suse.de>
master
Alexander Graf 2012-05-17 11:48:16 +02:00
parent dd0bcfca64
commit 625e665b61
3 changed files with 5 additions and 5 deletions

View File

@ -125,6 +125,11 @@ static int mpc8544_load_device_tree(CPUPPCState *env,
hypercall, sizeof(hypercall));
}
/* Create CPU nodes */
qemu_devtree_add_subnode(fdt, "/cpus");
qemu_devtree_setprop_cell(fdt, "/cpus", "#address-cells", 1);
qemu_devtree_setprop_cell(fdt, "/cpus", "#size-cells", 0);
/* We need to generate the cpu nodes in reverse order, so Linux can pick
the first node as boot node and be happy */
for (i = smp_cpus - 1; i >= 0; i--) {

Binary file not shown.

View File

@ -22,11 +22,6 @@
pci0 = &pci0;
};
cpus {
#address-cells = <1>;
#size-cells = <0>;
};
soc8544@e0000000 {
#address-cells = <1>;
#size-cells = <1>;