aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2019-10-23 11:37:51 -0700
committerGitHub <noreply@github.com>2019-10-23 11:37:51 -0700
commit20804cb4d2453f959c148117bdce927feaa20fc4 (patch)
tree72926367a8f8dbfa9eb3aad465dc130ed4225feb
parent0409bf9b24df19e3dc170f123e705d1b2a8274e1 (diff)
downloadriscv-openocd-20804cb4d2453f959c148117bdce927feaa20fc4.zip
riscv-openocd-20804cb4d2453f959c148117bdce927feaa20fc4.tar.gz
riscv-openocd-20804cb4d2453f959c148117bdce927feaa20fc4.tar.bz2
pmpcfg[13] only exist on RV32. (#416)
Change-Id: I38f10d34b163eb7d0bf44b5717bbb027b0e43e76
-rw-r--r--src/target/riscv/riscv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/target/riscv/riscv.c b/src/target/riscv/riscv.c
index 6392774..5e35399 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: