diff options
author | Jan Matyas <50193733+JanMatCodasip@users.noreply.github.com> | 2021-01-20 22:01:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-20 13:01:16 -0800 |
commit | 4d0efe0fbb1346b0bceaf6f7700715ddd02959ea (patch) | |
tree | 0e049b6cbde71a6699649ec9dc9c10974dce2311 /src/target | |
parent | d52e4668a60212524b3d29b92b47cc21c5317b66 (diff) | |
download | riscv-openocd-4d0efe0fbb1346b0bceaf6f7700715ddd02959ea.zip riscv-openocd-4d0efe0fbb1346b0bceaf6f7700715ddd02959ea.tar.gz riscv-openocd-4d0efe0fbb1346b0bceaf6f7700715ddd02959ea.tar.bz2 |
riscv-013: Fix comment for register_read() (#569)
Signed-off-by: Jan Matyas <matyas@codasip.com>
Diffstat (limited to 'src/target')
-rw-r--r-- | src/target/riscv/riscv-013.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/riscv/riscv-013.c b/src/target/riscv/riscv-013.c index 4163a38..b5ede34 100644 --- a/src/target/riscv/riscv-013.c +++ b/src/target/riscv/riscv-013.c @@ -1398,7 +1398,7 @@ static int register_write_direct(struct target *target, unsigned number, return exec_out; } -/** Return the cached value, or read from the target if necessary. */ +/** Read register value from the target. Also update the cached value. */ static int register_read(struct target *target, uint64_t *value, uint32_t number) { if (number == GDB_REGNO_ZERO) { |