mirror of https://github.com/xemu-project/xemu.git
PPC: e500: dt: create /cpus node dynamically
Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
dd0bcfca64
commit
625e665b61
|
@ -125,6 +125,11 @@ static int mpc8544_load_device_tree(CPUPPCState *env,
|
||||||
hypercall, sizeof(hypercall));
|
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
|
/* We need to generate the cpu nodes in reverse order, so Linux can pick
|
||||||
the first node as boot node and be happy */
|
the first node as boot node and be happy */
|
||||||
for (i = smp_cpus - 1; i >= 0; i--) {
|
for (i = smp_cpus - 1; i >= 0; i--) {
|
||||||
|
|
Binary file not shown.
|
@ -22,11 +22,6 @@
|
||||||
pci0 = &pci0;
|
pci0 = &pci0;
|
||||||
};
|
};
|
||||||
|
|
||||||
cpus {
|
|
||||||
#address-cells = <1>;
|
|
||||||
#size-cells = <0>;
|
|
||||||
};
|
|
||||||
|
|
||||||
soc8544@e0000000 {
|
soc8544@e0000000 {
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <1>;
|
#size-cells = <1>;
|
||||||
|
|
Loading…
Reference in New Issue