target/riscv: avoid unnecessary IR scans

Change-Id: I03feb5c7d72d5aa38f2cc13c4ed30175cffde84a
Signed-off-by: Evgeniy Naydanov <evgeniy.naydanov@syntacore.com>
This commit is contained in:
Evgeniy Naydanov 2024-06-13 18:25:59 +03:00
parent 3cd99c08c7
commit a96a0a4e39
1 changed files with 3 additions and 0 deletions

View File

@ -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);
} }