This commit is contained in:
Palmer Dabbelt 2018-05-31 23:14:48 -07:00
parent 51b5bc1955
commit 0dccc04b04
1 changed files with 1 additions and 1 deletions

View File

@ -2196,7 +2196,7 @@ static int read_memory_progbuf(struct target *target, target_addr_t address,
* address. */
dmi_write(target, DMI_ABSTRACTAUTO, 0);
next_read_addr = next_read_addr + size;
register_write_direct(target, &next_write_addr, GDB_REGNO_S0);
register_write_direct(target, &next_read_addr, GDB_REGNO_S0);
dmi_write(target, DMI_COMMAND, command);
dmi_write(target, DMI_ABSTRACTAUTO,
1 << DMI_ABSTRACTAUTO_AUTOEXECDATA_OFFSET);