aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlistair Francis <alistair.francis@wdc.com>2022-01-06 07:39:37 +1000
committerAlistair Francis <alistair.francis@wdc.com>2022-01-08 15:46:09 +1000
commitd4452c692488228e6dce193f4f98ac762588d96a (patch)
treeda7d24d1749d845a46c1042f6ca8b3ab95bd5e20 /include
parent8f972e5b4beeeb35b15f75499d18a8cc5a320ce7 (diff)
downloadqemu-d4452c692488228e6dce193f4f98ac762588d96a.zip
qemu-d4452c692488228e6dce193f4f98ac762588d96a.tar.gz
qemu-d4452c692488228e6dce193f4f98ac762588d96a.tar.bz2
hw/riscv: virt: Allow support for 32 cores
Linux supports up to 32 cores for both 32-bit and 64-bit RISC-V, so let's set that as the maximum for the virt board. Resolves: https://gitlab.com/qemu-project/qemu/-/issues/435 Signed-off-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Anup Patel <anup.patel@wdc.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Message-Id: <20220105213937.1113508-9-alistair.francis@opensource.wdc.com>
Diffstat (limited to 'include')
-rw-r--r--include/hw/riscv/virt.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hw/riscv/virt.h b/include/hw/riscv/virt.h
index b8ef99f..6e9f61c 100644
--- a/include/hw/riscv/virt.h
+++ b/include/hw/riscv/virt.h
@@ -24,7 +24,7 @@
#include "hw/block/flash.h"
#include "qom/object.h"
-#define VIRT_CPUS_MAX 8
+#define VIRT_CPUS_MAX 32
#define VIRT_SOCKETS_MAX 8
#define TYPE_RISCV_VIRT_MACHINE MACHINE_TYPE_NAME("virt")