]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/loongarch/virt: Set iocsr address space when CPU is created
authorBibo Mao <maobibo@loongson.cn>
Wed, 5 Feb 2025 03:36:12 +0000 (11:36 +0800)
committerBibo Mao <maobibo@loongson.cn>
Wed, 12 Feb 2025 02:01:55 +0000 (10:01 +0800)
commit28bec94c7da29860c27394b1668afc85762db981
treeb3eaab55295ee59516d5f83c4edeaafdf3cad116
parent3754f985a8816a966b72da0ec8fb9e8a3cf689b9
hw/loongarch/virt: Set iocsr address space when CPU is created

There is only one iocsr address space for the whole virt-machine
board. When CPU is created, the one of percpu points to that of
the board.

Here set iocsr address space when CPU is created rather than IPI
creation stage.

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Reviewed-by: Bibo Mao <maobibo@loongson.cn>
hw/loongarch/virt.c