aboutsummaryrefslogtreecommitdiff
path: root/include/hw/loongarch
diff options
context:
space:
mode:
authorSong Gao <gaosong@loongson.cn>2023-04-06 15:25:28 +0800
committerSong Gao <gaosong@loongson.cn>2023-05-15 19:09:33 +0800
commit646c39b220f789158313fee5d207f370e29c586a (patch)
tree9c46867ad4f65aa45a301f402f323fb126ddeaae /include/hw/loongarch
parent78464f023b5407c636239de43cef864d76098009 (diff)
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>
Diffstat (limited to 'include/hw/loongarch')
-rw-r--r--include/hw/loongarch/virt.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hw/loongarch/virt.h b/include/hw/loongarch/virt.h
index 54a9f595bb..f1659655c6 100644
--- a/include/hw/loongarch/virt.h
+++ b/include/hw/loongarch/virt.h
@@ -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