Skip to content

Commit

Permalink
riscv: make sure the hart is stopped when exiting reset
Browse files Browse the repository at this point in the history
  • Loading branch information
mean authored and dragonmux committed Oct 31, 2023
1 parent 2819a30 commit fe5a528
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/target/riscv_debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -848,6 +848,7 @@ static void riscv_reset(target_s *const target)
}
/* Acknowledge the reset */
riscv_dm_write(hart->dbg_module, RV_DM_CONTROL, hart->hartsel | RV_DM_CTRL_HART_ACK_RESET);
riscv_halt_request(target);
target_check_error(target);
}

Expand Down

0 comments on commit fe5a528

Please sign in to comment.