mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -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
|
@ -858,7 +858,7 @@ static void loongarch_init(MachineState *machine)
|
|||
for (i = 0; i < possible_cpus->len; i++) {
|
||||
cpu = cpu_create(machine->cpu_type);
|
||||
cpu->cpu_index = i;
|
||||
machine->possible_cpus->cpus[i].cpu = OBJECT(cpu);
|
||||
machine->possible_cpus->cpus[i].cpu = cpu;
|
||||
lacpu = LOONGARCH_CPU(cpu);
|
||||
lacpu->phy_id = machine->possible_cpus->cpus[i].arch_id;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue