target/riscv/pmp: Convert qemu_log_mask(LOG_TRACE) to trace events
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Tue, 23 Jul 2019 12:08:16 +0000 (14:08 +0200)
committerPalmer Dabbelt <palmer@sifive.com>
Tue, 17 Sep 2019 15:42:42 +0000 (08:42 -0700)
commit6591efb54966cb08bfd7398261caa2fc2184efeb
tree11be540096c38907a3af1a4d1de7733deb804161
parent0b84b6629d444ac31de33fb3125cb3e19740d766
target/riscv/pmp: Convert qemu_log_mask(LOG_TRACE) to trace events

Use the always-compiled trace events, remove the now unused
RISCV_DEBUG_PMP definition.

Note pmpaddr_csr_read() could previously do out-of-bound accesses
passing addr_index >= MAX_RISCV_PMPS.

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
target/riscv/pmp.c
target/riscv/trace-events