parent
dc4fe85880
commit
936c514bbf
|
@ -1664,7 +1664,7 @@ static riscv_error_t handle_halt_routine(struct target *target)
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
LOG_ERROR("Got invalid bus access status: %d", status);
|
LOG_ERROR("Got invalid bus access status: %d", status);
|
||||||
return ERROR_FAIL;
|
goto error;
|
||||||
}
|
}
|
||||||
if (data & DMCONTROL_INTERRUPT) {
|
if (data & DMCONTROL_INTERRUPT) {
|
||||||
interrupt_set++;
|
interrupt_set++;
|
||||||
|
@ -1794,6 +1794,8 @@ static riscv_error_t handle_halt_routine(struct target *target)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
scans_delete(scans);
|
||||||
|
|
||||||
if (dbus_busy) {
|
if (dbus_busy) {
|
||||||
increase_dbus_busy_delay(target);
|
increase_dbus_busy_delay(target);
|
||||||
return RE_AGAIN;
|
return RE_AGAIN;
|
||||||
|
@ -1807,8 +1809,6 @@ static riscv_error_t handle_halt_routine(struct target *target)
|
||||||
info->dpc = reg_cache_get(target, CSR_DPC);
|
info->dpc = reg_cache_get(target, CSR_DPC);
|
||||||
info->dcsr = reg_cache_get(target, CSR_DCSR);
|
info->dcsr = reg_cache_get(target, CSR_DCSR);
|
||||||
|
|
||||||
scans_delete(scans);
|
|
||||||
|
|
||||||
cache_invalidate(target);
|
cache_invalidate(target);
|
||||||
|
|
||||||
return RE_OK;
|
return RE_OK;
|
||||||
|
|
Loading…
Reference in New Issue