diff options
author | Craig Blackmore <craig.blackmore@embecosm.com> | 2021-01-13 10:49:53 +0000 |
---|---|---|
committer | Craig Blackmore <craig.blackmore@embecosm.com> | 2021-01-13 11:32:38 +0000 |
commit | 1158acec66e14eae7cd5e154b2380fc68a6dd023 (patch) | |
tree | 9c13c9f05a42778d750a8fa663754da27a73a817 | |
parent | d9c73e231e5144e05fe35496975c64817ac54555 (diff) | |
download | riscv-openocd-1158acec66e14eae7cd5e154b2380fc68a6dd023.zip riscv-openocd-1158acec66e14eae7cd5e154b2380fc68a6dd023.tar.gz riscv-openocd-1158acec66e14eae7cd5e154b2380fc68a6dd023.tar.bz2 |
riscv: Fix comment in read_memory_progbuf
The comment should refer to reading rather than writing.
Change-Id: I72937bb48053233ab5e48d343c4bd1e394f77bda
Signed-off-by: Craig Blackmore <craig.blackmore@embecosm.com>
-rw-r--r-- | src/target/riscv/riscv-013.c | 4 |
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; |