Whoops...

This commit is contained in:
Palmer Dabbelt 2018-05-31 23:36:30 -07:00
parent b32d012997
commit 6cbbf5317e
1 changed files with 2 additions and 2 deletions

View File

@ -2200,8 +2200,8 @@ static int read_memory_progbuf(struct target *target, target_addr_t address,
* failing reads by just moving on to the next
* address. */
dmi_write(target, DMI_ABSTRACTAUTO, 0);
next_read_addr = next_read_addr + size;
if (register_write_direct(target, &next_read_addr, GDB_REGNO_S0) != ERROR_OK)
next_read_addr = read_addr + size;
if (register_write_direct(target, GDB_REGNO_S0, next_read_addr) != ERROR_OK)
goto error;
dmi_write(target, DMI_COMMAND, command);
dmi_write(target, DMI_ABSTRACTAUTO,