RISC-V: Check PMP during Page Table Walks
commit1f447aec787bfbbd078afccae44fc4c92acb4fed
authorHesham Almatary <Hesham.Almatary@cl.cam.ac.uk>
Fri, 14 Jun 2019 12:19:02 +0000 (14 05:19 -0700)
committerPalmer Dabbelt <palmer@sifive.com>
Mon, 24 Jun 2019 06:44:42 +0000 (23 23:44 -0700)
treefb3d3dc4c85ffbbc5c85dd627ba430a0343d5720
parentcc0fdb298517ce56c770803447f8b02a90271152
RISC-V: Check PMP during Page Table Walks

The PMP should be checked when doing a page table walk, and report access
fault exception if the to-be-read PTE failed the PMP check.

Suggested-by: Jonathan Behrens <fintelia@gmail.com>
Signed-off-by: Hesham Almatary <Hesham.Almatary@cl.cam.ac.uk>
Reviewed-by: Palmer Dabbelt <palmer@sifive.com>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
target/riscv/cpu.h
target/riscv/cpu_helper.c