Re: [Qemu-devel] [PATCH v1 09/21] RISC-V Physical Memory Protection

2018-01-03 Thread Richard Henderson
On 01/02/2018 04:44 PM, Michael Clark wrote: > +#ifdef DEBUG_PMP > +#define PMP_PRINTF(fmt, ...) \ > +do { fprintf(stderr, "pmp: " fmt, ## __VA_ARGS__); } while (0) > +#else > +#define PMP_PRINTF(fmt, ...) \ > +do {} while (0) > +#endif Debugging goes to qemu_log. Rearrange this so that formattin

[Qemu-devel] [PATCH v1 09/21] RISC-V Physical Memory Protection

2018-01-02 Thread Michael Clark
Implements the physical memory protection extension as specified in Privileged ISA Version 1.10. Signed-off-by: Michael Clark --- target/riscv/pmp.c | 381 + target/riscv/pmp.h | 70 ++ 2 files changed, 451 insertions(+) create mode 1