mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-01-26 15:07:23 -07:00
PPC: E500: Remove unneeded CPU nodes
We should only keep CPU nodes in the device tree around that we really have virtual CPUs for. So remove all superfluous entries that we just keep there in case someone wants to create a lot of vCPUs. Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
621d05e301
commit
66bc7e0040
1 changed files with 6 additions and 0 deletions
|
|
@ -129,6 +129,12 @@ static int mpc8544_load_device_tree(CPUState *env,
|
|||
qemu_devtree_setprop_cell(fdt, cpu_name, "timebase-frequency", tb_freq);
|
||||
}
|
||||
|
||||
for (i = smp_cpus; i < 32; i++) {
|
||||
char cpu_name[128];
|
||||
snprintf(cpu_name, sizeof(cpu_name), "/cpus/PowerPC,8544@%x", i);
|
||||
qemu_devtree_nop_node(fdt, cpu_name);
|
||||
}
|
||||
|
||||
ret = rom_add_blob_fixed(BINARY_DEVICE_TREE_FILE, fdt, fdt_size, addr);
|
||||
g_free(fdt);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue