[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 23/58] PPC: E500: Remove unneeded CPU nodes
From: |
Alexander Graf |
Subject: |
[Qemu-devel] [PATCH 23/58] PPC: E500: Remove unneeded CPU nodes |
Date: |
Wed, 14 Sep 2011 10:42:47 +0200 |
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 <address@hidden>
---
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 0791e27..9379624 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,address@hidden",
i);
+ qemu_devtree_nop_node(fdt, cpu_name);
+ }
+
ret = rom_add_blob_fixed(BINARY_DEVICE_TREE_FILE, fdt, fdt_size, addr);
g_free(fdt);
--
1.6.0.2
- [Qemu-devel] [PATCH 42/58] pseries: use macro for firmware filename, (continued)
- [Qemu-devel] [PATCH 19/58] PPC: bamboo: Use kvm api for freq and clock frequencies, Alexander Graf, 2011/09/14
- [Qemu-devel] [PATCH 16/58] PPC: KVM: Add generic function to read host clockfreq, Alexander Graf, 2011/09/14
- [Qemu-devel] [PATCH 46/58] ppc: booke206: use MAV=2.0 TSIZE definition, fix 4G pages, Alexander Graf, 2011/09/14
- [Qemu-devel] [PATCH 23/58] PPC: E500: Remove unneeded CPU nodes,
Alexander Graf <=
- [Qemu-devel] [PATCH 13/58] PPC: E500: Generate IRQ lines for many CPUs, Alexander Graf, 2011/09/14
- [Qemu-devel] [PATCH 10/58] PPC: MPIC: Fix CI bit definitions, Alexander Graf, 2011/09/14
- [Qemu-devel] [PATCH 07/58] PPC: Fix IPI support in MPIC, Alexander Graf, 2011/09/14
- [Qemu-devel] [PATCH 31/58] PPC: E500: Bump CPU count to 15, Alexander Graf, 2011/09/14
- [Qemu-devel] [PATCH 25/58] PPC: E500: Update cpu-release-addr property in cpu nodes, Alexander Graf, 2011/09/14
- [Qemu-devel] [PATCH 27/58] device tree: dont fail operations, Alexander Graf, 2011/09/14
- [Qemu-devel] [PATCH 28/58] device tree: give dt more size, Alexander Graf, 2011/09/14