提交 625e665b 编写于 作者: A Alexander Graf

PPC: e500: dt: create /cpus node dynamically

Signed-off-by: NAlexander Graf <agraf@suse.de>
上级 dd0bcfca
......@@ -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--) {
......
......@@ -22,11 +22,6 @@
pci0 = &pci0;
};
cpus {
#address-cells = <1>;
#size-cells = <0>;
};
soc8544@e0000000 {
#address-cells = <1>;
#size-cells = <1>;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册