mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
hw/core: Declare CPUArchId::cpu as CPUState instead of Object
Do not accept any Object for CPUArchId::cpu field, restrict it to CPUState type. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-ID: <20240129164514.73104-3-philmd@linaro.org> Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
parent
ee1004bba6
commit
97e0310601
6 changed files with 8 additions and 9 deletions
|
@ -317,7 +317,7 @@ static void s390_cpu_plug(HotplugHandler *hotplug_dev,
|
|||
S390CPU *cpu = S390_CPU(dev);
|
||||
|
||||
g_assert(!ms->possible_cpus->cpus[cpu->env.core_id].cpu);
|
||||
ms->possible_cpus->cpus[cpu->env.core_id].cpu = OBJECT(dev);
|
||||
ms->possible_cpus->cpus[cpu->env.core_id].cpu = CPU(dev);
|
||||
|
||||
if (s390_has_topology()) {
|
||||
s390_topology_setup_cpu(ms, cpu, errp);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue