mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
hw/loongarch/virt: Set max 256 cpus support on loongarch virt machine
Add separate macro EXTIOI_CPUS for extioi interrupt controller, extioi only supports 4 cpu. And set macro LOONGARCH_MAX_CPUS as 256 so that loongarch virt machine supports more cpus. Interrupts from external devices can only be routed cpu 0-3 because of extioi limits, cpu internal interrupt such as timer/ipi can be triggered on all cpus. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Song Gao <gaosong@loongson.cn> Message-Id: <20230512100421.1867848-3-gaosong@loongson.cn>
This commit is contained in:
parent
78464f023b
commit
646c39b220
4 changed files with 18 additions and 11 deletions
|
@ -14,7 +14,7 @@
|
|||
#include "hw/intc/loongarch_ipi.h"
|
||||
#include "hw/block/flash.h"
|
||||
|
||||
#define LOONGARCH_MAX_VCPUS 4
|
||||
#define LOONGARCH_MAX_CPUS 256
|
||||
|
||||
#define VIRT_ISA_IO_BASE 0x18000000UL
|
||||
#define VIRT_ISA_IO_SIZE 0x0004000
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue