diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-01-13 00:13:44 +0100 |
---|---|---|
committer | Alistair Francis <alistair.francis@wdc.com> | 2025-01-19 09:44:35 +1000 |
commit | cb938a0a24bc911894b6fec1429e2e0cc8b2f948 (patch) | |
tree | bf506896fdc6962fe367f26ba02eeef178acc50b /scripts/vmstate-static-checker.py | |
parent | 7703a1d1e6479084d58ee3106a3c8a72ed7357eb (diff) | |
download | qemu-cb938a0a24bc911894b6fec1429e2e0cc8b2f948.zip qemu-cb938a0a24bc911894b6fec1429e2e0cc8b2f948.tar.gz qemu-cb938a0a24bc911894b6fec1429e2e0cc8b2f948.tar.bz2 |
hw/riscv/virt: Remove unnecessary use of &first_cpu
virt_machine_init() creates the HARTs vCPUs, then later
virt_machine_done() calls create_fdt_sockets(), so the
latter has access to the first vCPU via:
RISCVVirtState {
RISCVHartArrayState {
RISCVCPU *harts;
...
} soc[VIRT_SOCKETS_MAX];
...
} s;
Directly use that instead of the &first_cpu global.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-ID: <20250112231344.34632-3-philmd@linaro.org>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'scripts/vmstate-static-checker.py')
0 files changed, 0 insertions, 0 deletions