hw/core: Declare CPUArchId::cpu as CPUState instead of Object
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 29 Jan 2024 16:44:44 +0000 (17:44 +0100)
committerThomas Huth <thuth@redhat.com>
Tue, 12 Mar 2024 10:46:16 +0000 (11:46 +0100)
commit97e03106018301969f9e7c1eb22d3838adbe0bcc
tree0f51a4a48a5de2624a7fc84d192e3876167bb3a2
parentee1004bba6eadeddf988a29716dc28849c0211c8
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>
hw/core/machine.c
hw/i386/x86.c
hw/loongarch/virt.c
hw/ppc/spapr.c
hw/s390x/s390-virtio-ccw.c
include/hw/boards.h