aboutsummaryrefslogtreecommitdiff
path: root/include
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 /include
parentee1004bba6eadeddf988a29716dc28849c0211c8 (diff)
downloadqemu-97e03106018301969f9e7c1eb22d3838adbe0bcc.zip
qemu-97e03106018301969f9e7c1eb22d3838adbe0bcc.tar.gz
qemu-97e03106018301969f9e7c1eb22d3838adbe0bcc.tar.bz2
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 'include')
-rw-r--r--include/hw/boards.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hw/boards.h b/include/hw/boards.h
index bcfde8a..8b8f6d5 100644
--- a/include/hw/boards.h
+++ b/include/hw/boards.h
@@ -120,7 +120,7 @@ typedef struct CPUArchId {
uint64_t arch_id;
int64_t vcpus_count;
CpuInstanceProperties props;
- Object *cpu;
+ CPUState *cpu;
const char *type;
} CPUArchId;