summary refs log tree commit diff stats
path: root/hw/i386
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2024-01-29 17:44:44 +0100
committerThomas Huth <thuth@redhat.com>2024-03-12 11:46:16 +0100
commit97e03106018301969f9e7c1eb22d3838adbe0bcc (patch)
tree0f51a4a48a5de2624a7fc84d192e3876167bb3a2 /hw/i386
parentee1004bba6eadeddf988a29716dc28849c0211c8 (diff)
downloadfocaccia-qemu-97e03106018301969f9e7c1eb22d3838adbe0bcc.tar.gz
focaccia-qemu-97e03106018301969f9e7c1eb22d3838adbe0bcc.zip
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>
Diffstat (limited to 'hw/i386')
-rw-r--r--hw/i386/x86.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/i386/x86.c b/hw/i386/x86.c
index 807e09bcdb..ffbda48917 100644
--- a/hw/i386/x86.c
+++ b/hw/i386/x86.c
@@ -225,7 +225,7 @@ void x86_cpu_plug(HotplugHandler *hotplug_dev,
     }
 
     found_cpu = x86_find_cpu_slot(MACHINE(x86ms), cpu->apic_id, NULL);
-    found_cpu->cpu = OBJECT(dev);
+    found_cpu->cpu = CPU(dev);
 out:
     error_propagate(errp, local_err);
 }