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>
This commit is contained in:
Craig Blackmore 2021-01-13 10:49:53 +00:00
parent d9c73e231e
commit 1158acec66
1 changed files with 2 additions and 2 deletions

View File

@ -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) if (modify_privilege(target, &mstatus, &mstatus_old) != ERROR_OK)
return ERROR_FAIL; return ERROR_FAIL;
/* s0 holds the next address to write to /* s0 holds the next address to read from
* s1 holds the next data value to write * s1 holds the next data value read
* s2 is a counter in case increment is 0 * s2 is a counter in case increment is 0
*/ */
uint64_t s0, s1, s2; uint64_t s0, s1, s2;