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:
parent
76c8c6ed79
commit
74faa18902
3 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue