target/riscv: avoid unnecessary IR scans
Change-Id: I03feb5c7d72d5aa38f2cc13c4ed30175cffde84a Signed-off-by: Evgeniy Naydanov <evgeniy.naydanov@syntacore.com>
This commit is contained in:
parent
3cd99c08c7
commit
a96a0a4e39
|
@ -435,6 +435,9 @@ static void select_dmi(struct target *target)
|
||||||
select_dmi_via_bscan(target);
|
select_dmi_via_bscan(target);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (buf_cmp(target->tap->cur_instr, select_dbus.out_value,
|
||||||
|
target->tap->ir_length) == 0)
|
||||||
|
return;
|
||||||
jtag_add_ir_scan(target->tap, &select_dbus, TAP_IDLE);
|
jtag_add_ir_scan(target->tap, &select_dbus, TAP_IDLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue