Re: [PATCH v2 1/1] target/riscv/pmp: Fix bug preventing

2019-10-15 Thread Chris Williams
Hi, Oct 11, 2019, 15:18 by alistai...@gmail.com: > On Sun, Oct 6, 2019 at 1:32 AM Chris Williams wrote: > > Also please use `git format-patch` to format the patch and then `git > send-email` to send the patch. There is a whole heap of detail here: > https://wiki.qemu.org/Contribu

[PATCH v2 1/1] target/riscv/pmp: Fix bug preventing

2019-10-06 Thread Chris Williams
. The word alignment in pmpaddr{0-15} and earlier instruction alignment checks should prevent the execution of instructions over the upper boundary of the PMP region, though I'm happy to give this more attention if this is a concern. Signed-off-by: Chris Williams mailto:diodes...@tuta.io>> diff

[Qemu-devel] [PATCH v1 1/1] riscv: pmp: Allow valid instruction fetches at the start of a PMP range

2019-09-16 Thread Chris Williams
behavior is to allow the instruction fetch. This patch checks a size is non-zero before applying a calculation operation that would bring it below addr, and thus erroneously raise a fault. Signed-off-by: Chris Williams mailto:diodes...@tuta.io>> --- target/riscv/pmp.c | 6 -- 1 file c