From 1158acec66e14eae7cd5e154b2380fc68a6dd023 Mon Sep 17 00:00:00 2001 From: Craig Blackmore Date: Wed, 13 Jan 2021 10:49:53 +0000 Subject: [PATCH] riscv: Fix comment in read_memory_progbuf The comment should refer to reading rather than writing. Change-Id: I72937bb48053233ab5e48d343c4bd1e394f77bda Signed-off-by: Craig Blackmore --- src/target/riscv/riscv-013.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/target/riscv/riscv-013.c b/src/target/riscv/riscv-013.c index 0565e49e8..6848505e1 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;