From 20804cb4d2453f959c148117bdce927feaa20fc4 Mon Sep 17 00:00:00 2001 From: Tim Newsome <tim@sifive.com> Date: Wed, 23 Oct 2019 11:37:51 -0700 Subject: [PATCH] pmpcfg[13] only exist on RV32. (#416) Change-Id: I38f10d34b163eb7d0bf44b5717bbb027b0e43e76 --- src/target/riscv/riscv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/target/riscv/riscv.c b/src/target/riscv/riscv.c index 639277447..5e3539941 100644 --- a/src/target/riscv/riscv.c +++ b/src/target/riscv/riscv.c @@ -3431,6 +3431,8 @@ int riscv_init_registers(struct target *target) riscv_supports_extension(target, hartid, 'N'); break; + case CSR_PMPCFG1: + case CSR_PMPCFG3: case CSR_CYCLEH: case CSR_TIMEH: case CSR_INSTRETH: