aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2017-07-12 19:45:40 -0700
committerGitHub <noreply@github.com>2017-07-12 19:45:40 -0700
commitcc2c2e7a65dfff8a9937dd7356071b4dd3b66cb3 (patch)
tree34555810815110457846f64bc8c388d293dcb081
parent46b91c9b0da6babae9e000a50ca84f0fb57231f9 (diff)
parent2deb02695e851dc461bc24d49340a7e9b4a2c8e7 (diff)
downloadriscv-openocd-cc2c2e7a65dfff8a9937dd7356071b4dd3b66cb3.zip
riscv-openocd-cc2c2e7a65dfff8a9937dd7356071b4dd3b66cb3.tar.gz
riscv-openocd-cc2c2e7a65dfff8a9937dd7356071b4dd3b66cb3.tar.bz2
Merge pull request #82 from riscv/comment
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;