]> git.proxmox.com Git - mirror_qemu.git/commit
RISC-V: Raise access fault exceptions on PMP violations
authorHesham Almatary <Hesham.Almatary@cl.cam.ac.uk>
Fri, 14 Jun 2019 12:17:28 +0000 (05:17 -0700)
committerPalmer Dabbelt <palmer@sifive.com>
Mon, 24 Jun 2019 06:44:41 +0000 (23:44 -0700)
commit635b0b0ea39a13d1a3df932452e5728aebbb3f6e
tree386206485471e69ad53acf76aac7bacb6fd2377c
parente0f8fa72deba7ac7a7ae06ba25e6498aaad93ace
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>
target/riscv/cpu_helper.c