diff options
author | Alexander Graf <agraf@suse.de> | 2011-07-21 03:02:31 +0200 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2011-10-06 09:43:35 +0200 |
commit | 66bc7e00404a2a6ce92b0f4ee2ecc5df416650b3 (patch) | |
tree | 3554d67431d4d95c62acd83aae19a9ff531db132 /hw/ppce500_mpc8544ds.c | |
parent | 621d05e3011bb369a6d48881ceaabb4ecf1a8790 (diff) |
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>
Diffstat (limited to 'hw/ppce500_mpc8544ds.c')
-rw-r--r-- | hw/ppce500_mpc8544ds.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/hw/ppce500_mpc8544ds.c b/hw/ppce500_mpc8544ds.c index 0791e27462..9379624e37 100644 --- a/hw/ppce500_mpc8544ds.c +++ b/hw/ppce500_mpc8544ds.c @@ -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); |