Turn off autoexec after read_memory()

__archive__
Palmer Dabbelt 2017-03-22 14:28:39 -07:00
parent 98420e377a
commit 5f9cc2ce5f
1 changed files with 1 additions and 0 deletions

View File

@ -1888,6 +1888,7 @@ static int read_memory(struct target *target, uint32_t address,
return ERROR_FAIL; return ERROR_FAIL;
} }
} }
dmi_write(target, DMI_ABSTRACTAUTO, 0);
dmi_write(target, DMI_ABSTRACTCS, DMI_ABSTRACTCS_CMDERR); dmi_write(target, DMI_ABSTRACTCS, DMI_ABSTRACTCS_CMDERR);
abstractcs = dmi_read(target, DMI_ABSTRACTCS); abstractcs = dmi_read(target, DMI_ABSTRACTCS);
if (get_field(abstractcs, DMI_ABSTRACTCS_CMDERR)) { if (get_field(abstractcs, DMI_ABSTRACTCS_CMDERR)) {