• Palmer Dabbelt's avatar
    RISC-V: Skip setting up PMPs on traps · eb077c9c
    Palmer Dabbelt authored
    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>
    eb077c9c
head.S 7.05 KB