aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2017-07-12 17:51:38 -0700
committerTim Newsome <tim@sifive.com>2017-07-12 17:51:38 -0700
commit2deb02695e851dc461bc24d49340a7e9b4a2c8e7 (patch)
tree34555810815110457846f64bc8c388d293dcb081
parent46b91c9b0da6babae9e000a50ca84f0fb57231f9 (diff)
downloadriscv-openocd-2deb02695e851dc461bc24d49340a7e9b4a2c8e7.zip
riscv-openocd-2deb02695e851dc461bc24d49340a7e9b4a2c8e7.tar.gz
riscv-openocd-2deb02695e851dc461bc24d49340a7e9b4a2c8e7.tar.bz2
Forgot to commit this follow up to PR #79
-rw-r--r--src/target/riscv/riscv-013.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/target/riscv/riscv-013.c b/src/target/riscv/riscv-013.c
index 758e1d3..3589e6f 100644
--- a/src/target/riscv/riscv-013.c
+++ b/src/target/riscv/riscv-013.c
@@ -938,6 +938,9 @@ static int init_target(struct command_context *cmd_ctx,
// Assume all these abstract commands are supported until we learn
// otherwise.
+ // TODO: The spec allows eg. one CSR to be able to be accessed abstractly
+ // while another one isn't. We don't track that this closely here, but in
+ // the future we probably should.
info->abstract_read_csr_supported = true;
info->abstract_write_csr_supported = true;
info->abstract_read_fpr_supported = true;