Wrong autoexec

This commit is contained in:
Palmer Dabbelt 2017-03-21 17:14:29 -07:00
parent 0c790d385d
commit 6033850415
1 changed files with 2 additions and 2 deletions

View File

@ -1858,7 +1858,7 @@ static int read_memory(struct target *target, uint32_t address,
return ERROR_FAIL;
}
dmi_write(target, DMI_ABSTRACTCS, DMI_ABSTRACTCS_CMDERR);
dmi_write(target, DMI_ABSTRACTAUTO, 0x1 << DMI_ABSTRACTAUTO_AUTOEXECPROGBUF_OFFSET);
dmi_write(target, DMI_ABSTRACTAUTO, 0x1 << DMI_ABSTRACTAUTO_AUTOEXECDATA_OFFSET);
for (uint32_t i = 0; i < count; i++) {
uint32_t value = dmi_read(target, DMI_DATA0);
@ -1972,7 +1972,7 @@ static int write_memory(struct target *target, uint32_t address,
DMI_ABSTRACTCS_CMDERR,
false);
scans_add_dmi_write(scans, DMI_ABSTRACTAUTO,
0x1 << DMI_ABSTRACTAUTO_AUTOEXECPROGBUF_OFFSET,
0x1 << DMI_ABSTRACTAUTO_AUTOEXECDATA_OFFSET,
false);
}
}