Skip to content
Unverified Commit eb077c9c authored by Palmer Dabbelt's avatar Palmer Dabbelt
Browse files

RISC-V: Skip setting up PMPs on traps



The RISC-V ISA manual says that PMPs are WARL, but it appears the K210
doesn't implement them and instead traps on the unsupported accesses.
This patch handles those traps by just skipping the PMP
initialization entirely, under the theory that machines that trap on PMP
accesses must allow memory accesses as otherwise they're pretty useless.

Signed-off-by: default avatarPalmer Dabbelt <palmerdabbelt@google.com>
parent 045c6542
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment