Skip to content

Commit

Permalink
target/riscv: select DMI IR on batch access.
Browse files Browse the repository at this point in the history
Without the selection the TAP can be left in bypass.

Change-Id: I79c6bf74802dc9c9475947d1787a3d0b797f3952
Signed-off-by: Evgeniy Naydanov <[email protected]>
  • Loading branch information
en-sc committed Jun 14, 2024
1 parent 38ec813 commit 07940e6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/target/riscv/riscv-013.c
Original file line number Diff line number Diff line change
Expand Up @@ -2777,6 +2777,7 @@ struct riscv_scan_delays get_scan_delays(struct target *target)
static int batch_run(struct target *target, struct riscv_batch *batch)
{
RISCV_INFO(r);
select_dmi(target);
riscv_batch_add_nop(batch);
const int result = riscv_batch_run_from(batch, 0,
get_scan_delays(target),
Expand All @@ -2797,6 +2798,7 @@ static int batch_run_timeout(struct target *target, struct riscv_batch *batch)
{
RISCV013_INFO(info);

select_dmi(target);
riscv_batch_add_nop(batch);

size_t finished_scans = 0;
Expand Down

0 comments on commit 07940e6

Please sign in to comment.