summaryrefslogtreecommitdiffstats
path: root/target/riscv/pmp.h
diff options
context:
space:
mode:
authorHesham Almatary2019-06-14 14:17:28 +0200
committerPalmer Dabbelt2019-06-24 08:44:41 +0200
commit635b0b0ea39a13d1a3df932452e5728aebbb3f6e (patch)
tree386206485471e69ad53acf76aac7bacb6fd2377c /target/riscv/pmp.h
parentRISC-V: Only Check PMP if MMU translation succeeds (diff)
downloadqemu-635b0b0ea39a13d1a3df932452e5728aebbb3f6e.tar.gz
qemu-635b0b0ea39a13d1a3df932452e5728aebbb3f6e.tar.xz
qemu-635b0b0ea39a13d1a3df932452e5728aebbb3f6e.zip
RISC-V: Raise access fault exceptions on PMP violations
Section 3.6 in RISC-V v1.10 privilege specification states that PMP violations report "access exceptions." The current PMP implementation has a bug which wrongly reports "page exceptions" on PMP violations. This patch fixes this bug by reporting the correct PMP access exceptions trap values. Signed-off-by: Hesham Almatary <Hesham.Almatary@cl.cam.ac.uk> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
Diffstat (limited to 'target/riscv/pmp.h')
0 files changed, 0 insertions, 0 deletions