Skip to content

Commit a96a0a4

Browse files
committed
target/riscv: avoid unnecessary IR scans
Change-Id: I03feb5c7d72d5aa38f2cc13c4ed30175cffde84a Signed-off-by: Evgeniy Naydanov <[email protected]>
1 parent 3cd99c0 commit a96a0a4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/target/riscv/riscv-013.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,9 @@ static void select_dmi(struct target *target)
435435
select_dmi_via_bscan(target);
436436
return;
437437
}
438+
if (buf_cmp(target->tap->cur_instr, select_dbus.out_value,
439+
target->tap->ir_length) == 0)
440+
return;
438441
jtag_add_ir_scan(target->tap, &select_dbus, TAP_IDLE);
439442
}
440443

0 commit comments

Comments
 (0)