Merge pull request #1091 from en-sc/en-sc/no-extra-ir

target/riscv: avoid unnecessary IR scans
This commit is contained in:
Evgeniy Naydanov 2024-09-10 12:01:40 +03:00 committed by GitHub
commit c455b60ff7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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);
} }