Skip to content

Commit

Permalink
Merge pull request #1091 from en-sc/en-sc/no-extra-ir
Browse files Browse the repository at this point in the history
target/riscv: avoid unnecessary IR scans
  • Loading branch information
en-sc authored Sep 10, 2024
2 parents 3cd99c0 + a96a0a4 commit c455b60
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/target/riscv/riscv-013.c
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,9 @@ static void select_dmi(struct target *target)
select_dmi_via_bscan(target);
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);
}

Expand Down

0 comments on commit c455b60

Please sign in to comment.