aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2021-01-14 12:54:58 -0800
committerGitHub <noreply@github.com>2021-01-14 12:54:58 -0800
commitd7db23c6fcda69e22b23e64b65b10c637f8ddb9e (patch)
tree9c13c9f05a42778d750a8fa663754da27a73a817
parentd9c73e231e5144e05fe35496975c64817ac54555 (diff)
parent1158acec66e14eae7cd5e154b2380fc68a6dd023 (diff)
downloadriscv-openocd-d7db23c6fcda69e22b23e64b65b10c637f8ddb9e.zip
riscv-openocd-d7db23c6fcda69e22b23e64b65b10c637f8ddb9e.tar.gz
riscv-openocd-d7db23c6fcda69e22b23e64b65b10c637f8ddb9e.tar.bz2
Merge pull request #566 from craigblackmore/cb-read-progbuf-comment
Fix comment in read_memory_progbuf
-rw-r--r--src/target/riscv/riscv-013.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/target/riscv/riscv-013.c b/src/target/riscv/riscv-013.c
index 0565e49..6848505 100644
--- a/src/target/riscv/riscv-013.c
+++ b/src/target/riscv/riscv-013.c
@@ -3451,8 +3451,8 @@ static int read_memory_progbuf(struct target *target, target_addr_t address,
if (modify_privilege(target, &mstatus, &mstatus_old) != ERROR_OK)
return ERROR_FAIL;
- /* s0 holds the next address to write to
- * s1 holds the next data value to write
+ /* s0 holds the next address to read from
+ * s1 holds the next data value read
* s2 is a counter in case increment is 0
*/
uint64_t s0, s1, s2;