mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
change CPUArchId.cpu type to Object*
so it could be reused for SPAPR cores as well Signed-off-by: Igor Mammedov <imammedo@redhat.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
1ea69c0e25
commit
8aba384298
3 changed files with 6 additions and 6 deletions
|
@ -198,7 +198,7 @@ void cpu_hotplug_hw_init(MemoryRegion *as, Object *owner,
|
|||
state->dev_count = id_list->len;
|
||||
state->devs = g_new0(typeof(*state->devs), state->dev_count);
|
||||
for (i = 0; i < id_list->len; i++) {
|
||||
state->devs[i].cpu = id_list->cpus[i].cpu;
|
||||
state->devs[i].cpu = CPU(id_list->cpus[i].cpu);
|
||||
state->devs[i].arch_id = id_list->cpus[i].arch_id;
|
||||
}
|
||||
memory_region_init_io(&state->ctrl_reg, owner, &cpu_hotplug_ops, state,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue