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
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