Fixed off-by-one error in previous commit

FE_402_fix
Gleb Gagarin 2017-08-11 17:46:35 -07:00
parent 96eb73c83e
commit e676d3dae6
1 changed files with 1 additions and 1 deletions

View File

@ -1374,7 +1374,7 @@ static int read_memory(struct target *target, target_addr_t address,
size_t rereads = reads;
for (riscv_addr_t i = start; i < count; ++i) {
if (i == count - 1) {
if (i == count) {
// don't do actual read in this batch,
// we will do it later after we disable autoexec
//