From a032220ca8102f8c5743842e7ce2aaffb0e75322 Mon Sep 17 00:00:00 2001 From: mean Date: Tue, 15 Aug 2023 09:08:06 +0200 Subject: [PATCH] riscv: make sure the hart is stopped when exiting reset --- src/target/riscv_debug.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/target/riscv_debug.c b/src/target/riscv_debug.c index df4066b2697..aa5e74e5e3e 100644 --- a/src/target/riscv_debug.c +++ b/src/target/riscv_debug.c @@ -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); }