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 7d936f9 commit a032220
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 @@ -847,6 +847,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 a032220

Please sign in to comment.