diff options
author | Hesham Almatary <Hesham.Almatary@cl.cam.ac.uk> | 2019-06-14 05:17:28 -0700 |
---|---|---|
committer | Palmer Dabbelt <palmer@sifive.com> | 2019-06-23 23:44:41 -0700 |
commit | 635b0b0ea39a13d1a3df932452e5728aebbb3f6e (patch) | |
tree | 386206485471e69ad53acf76aac7bacb6fd2377c /arch_init.c | |
parent | e0f8fa72deba7ac7a7ae06ba25e6498aaad93ace (diff) | |
download | qemu-635b0b0ea39a13d1a3df932452e5728aebbb3f6e.zip qemu-635b0b0ea39a13d1a3df932452e5728aebbb3f6e.tar.gz qemu-635b0b0ea39a13d1a3df932452e5728aebbb3f6e.tar.bz2 |
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 'arch_init.c')
0 files changed, 0 insertions, 0 deletions