[Qemu-devel] [PULL 05/34] RISC-V: Only Check PMP if MMU translation succeeds

2019-06-28 Thread Palmer Dabbelt
From: Hesham Almatary The current implementation unnecessarily checks for PMP even if MMU translation failed. This may trigger a wrong PMP access exception instead of a page exception. For example, the very first instruction fetched after the first satp write in S-Mode will trigger a PMP access

[Qemu-devel] [PULL 05/34] RISC-V: Only Check PMP if MMU translation succeeds

2019-06-27 Thread Palmer Dabbelt
From: Hesham Almatary The current implementation unnecessarily checks for PMP even if MMU translation failed. This may trigger a wrong PMP access exception instead of a page exception. For example, the very first instruction fetched after the first satp write in S-Mode will trigger a PMP access