Skip to content

Commit fdd07f1

Browse files
authored
Merge pull request riscv-collab#1089 from en-sc/en-sc/batch-select-dmi
target/riscv: select DMI IR on batch access
2 parents 38ec813 + 07940e6 commit fdd07f1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/target/riscv/riscv-013.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2777,6 +2777,7 @@ struct riscv_scan_delays get_scan_delays(struct target *target)
27772777
static int batch_run(struct target *target, struct riscv_batch *batch)
27782778
{
27792779
RISCV_INFO(r);
2780+
select_dmi(target);
27802781
riscv_batch_add_nop(batch);
27812782
const int result = riscv_batch_run_from(batch, 0,
27822783
get_scan_delays(target),
@@ -2797,6 +2798,7 @@ static int batch_run_timeout(struct target *target, struct riscv_batch *batch)
27972798
{
27982799
RISCV013_INFO(info);
27992800

2801+
select_dmi(target);
28002802
riscv_batch_add_nop(batch);
28012803

28022804
size_t finished_scans = 0;

0 commit comments

Comments
 (0)