]> www.infradead.org Git - users/dwmw2/qemu.git/commit
hw/mips/loongson3_virt: Factor generic_cpu_reset() out
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Sun, 12 Jan 2025 20:05:46 +0000 (21:05 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 31 Jan 2025 18:06:11 +0000 (19:06 +0100)
commit6286423b8bae2dafb5209a2e45d3ad30d75d146d
tree3c0d44b895b2e61fc5133561a5a357a279dc2d63
parentdc21331e67486782dc573285061fbeedce219c64
hw/mips/loongson3_virt: Factor generic_cpu_reset() out

main_cpu_reset() is misleadingly named "main": it resets
all vCPUs, with a special case for the first vCPU.

Factor generic_cpu_reset() out of main_cpu_reset(),
allowing to remove one &first_cpu use.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20250115232952.31166-2-philmd@linaro.org>
hw/mips/loongson3_virt.c