soc: riscv: virt: enable RISC-V PMP support

Enable CONFIG_RISCV_PMP in qemu virt soc. Use this SoC as CI testing
platform of RISC-V PMP and Userspace.

Signed-off-by: Jim Shu <cwshu@andestech.com>
This commit is contained in:
Jim Shu 2021-02-21 18:04:13 +08:00 committed by Carles Cufí
commit 74faa18902
3 changed files with 9 additions and 0 deletions

View file

@ -12,3 +12,4 @@ CONFIG_RISCV_MACHINE_TIMER=y
CONFIG_STACK_SENTINEL=y
CONFIG_QEMU_ICOUNT_SHIFT=6
CONFIG_XIP=n
CONFIG_RISCV_PMP=y

View file

@ -33,4 +33,10 @@ config MAX_IRQ_PER_AGGREGATOR
config NUM_IRQS
default 64
config PMP_POWER_OF_TWO_ALIGNMENT
default y
config PMP_SLOT
default 16
endif

View file

@ -5,3 +5,5 @@ config SOC_SERIES_RISCV_VIRT
bool "QEMU RISC-V VirtIO Board"
select RISCV
select SOC_FAMILY_RISCV_PRIVILEGE
select ARCH_HAS_USERSPACE if RISCV_PMP
select ARCH_HAS_STACK_PROTECTION if PMP_STACK_GUARD