diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-01-29 17:44:44 +0100 |
---|---|---|
committer | Thomas Huth <thuth@redhat.com> | 2024-03-12 11:46:16 +0100 |
commit | 97e03106018301969f9e7c1eb22d3838adbe0bcc (patch) | |
tree | 0f51a4a48a5de2624a7fc84d192e3876167bb3a2 /include | |
parent | ee1004bba6eadeddf988a29716dc28849c0211c8 (diff) | |
download | qemu-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.h | 2 |
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; |