Skip to content

Commit e676d3d

Browse files
committed
Fixed off-by-one error in previous commit
1 parent 96eb73c commit e676d3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/target/riscv/riscv-013.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1374,7 +1374,7 @@ static int read_memory(struct target *target, target_addr_t address,
13741374
size_t rereads = reads;
13751375
for (riscv_addr_t i = start; i < count; ++i) {
13761376

1377-
if (i == count - 1) {
1377+
if (i == count) {
13781378
// don't do actual read in this batch,
13791379
// we will do it later after we disable autoexec
13801380
//

0 commit comments

Comments
 (0)