From 2deb02695e851dc461bc24d49340a7e9b4a2c8e7 Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Wed, 12 Jul 2017 17:51:38 -0700 Subject: [PATCH] Forgot to commit this follow up to PR #79 --- src/target/riscv/riscv-013.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/target/riscv/riscv-013.c b/src/target/riscv/riscv-013.c index 758e1d3c0..3589e6f28 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;