MIPS: fastdata bulk write fallback
If fastdata access fails, then fallback to default mips_m4k_write_memory Remove unnecessary fastdata loader verify check Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
This commit is contained in:
@@ -1001,6 +1001,12 @@ int mips_m4k_bulk_write_memory(struct target *target, uint32_t address, uint32_t
|
||||
}
|
||||
|
||||
retval = mips32_pracc_fastdata_xfer(ejtag_info, source, write, address, count, (uint32_t*) buffer);
|
||||
if (retval != ERROR_OK)
|
||||
{
|
||||
/* FASTDATA access failed, try normal memory write */
|
||||
LOG_WARNING("Fastdata access Failed, falling back to non-bulk write");
|
||||
retval = mips_m4k_write_memory(target, address, 4, count, buffer);
|
||||
}
|
||||
|
||||
if (source)
|
||||
target_free_working_area(target, source);
|
||||
|
||||
Reference in New Issue
Block a user