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 Sep 20, 2023
1 parent 4555a53 commit 95c7622
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 95c7622

Please sign in to comment.