Skip to content

Commit

Permalink
target/riscv: avoid unnecessary IR scans
Browse files Browse the repository at this point in the history
Change-Id: I03feb5c7d72d5aa38f2cc13c4ed30175cffde84a
Signed-off-by: Evgeniy Naydanov <[email protected]>
  • Loading branch information
en-sc committed Sep 6, 2024
1 parent 3cd99c0 commit a96a0a4
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 a96a0a4

Please sign in to comment.