Skip to content

Commit 6e4dd94

Browse files
committed
hw/riscv/Kconfig: Restrict NUMA to Virt & Spike machines
Only the Virt and Spike machines use NUMA. Add a RISCV_NUMA Kconfig symbol and only have these machines select it. Adapt the Meson file to only built it if required. Acked-by: Paolo Bonzini <[email protected]> Reviewed-by: Bin Meng <[email protected]> Signed-off-by: Philippe Mathieu-Daudé <[email protected]> Message-Id: <[email protected]> Reviewed-by: Alistair Francis <[email protected]>
1 parent 8cbb537 commit 6e4dd94

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

hw/riscv/Kconfig

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
config RISCV_NUMA
2+
bool
3+
14
config IBEX
25
bool
36

@@ -34,6 +37,7 @@ config RISCV_VIRT
3437
imply PCI_DEVICES
3538
imply VIRTIO_VGA
3639
imply TEST_DEVICES
40+
select RISCV_NUMA
3741
select GOLDFISH_RTC
3842
select MSI_NONBROKEN
3943
select PCI
@@ -74,6 +78,7 @@ config SIFIVE_U
7478

7579
config SPIKE
7680
bool
81+
select RISCV_NUMA
7782
select HTIF
7883
select MSI_NONBROKEN
7984
select SIFIVE_CLINT

hw/riscv/meson.build

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
riscv_ss = ss.source_set()
22
riscv_ss.add(files('boot.c'), fdt)
3-
riscv_ss.add(files('numa.c'))
3+
riscv_ss.add(when: 'CONFIG_RISCV_NUMA', if_true: files('numa.c'))
44
riscv_ss.add(files('riscv_hart.c'))
55
riscv_ss.add(when: 'CONFIG_OPENTITAN', if_true: files('opentitan.c'))
66
riscv_ss.add(when: 'CONFIG_RISCV_VIRT', if_true: files('virt.c'))

0 commit comments

Comments
 (0)