Merge 2ff738dfba
into fa7e2351c8
This commit is contained in:
commit
ae07c65754
|
@ -711,9 +711,12 @@ static void riscv_deinit_target(struct target *target)
|
|||
free(target->private_config);
|
||||
|
||||
struct riscv_info *info = target->arch_info;
|
||||
struct target_type *tt = get_target_type(target);
|
||||
if (!tt)
|
||||
LOG_TARGET_ERROR(target, "Could not identify target type.");
|
||||
struct target_type *tt = NULL;
|
||||
if (info->dtm_version != DTM_DTMCS_VERSION_UNKNOWN) {
|
||||
tt = get_target_type(target);
|
||||
if (!tt)
|
||||
LOG_TARGET_ERROR(target, "Could not identify target type.");
|
||||
}
|
||||
|
||||
if (riscv_reg_flush_all(target) != ERROR_OK)
|
||||
LOG_TARGET_ERROR(target, "Failed to flush registers. Ignoring this error.");
|
||||
|
|
Loading…
Reference in New Issue