From fe5a528436adbd6c025e45574cc3da8fbc2b7a26 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 ed9172598d7..ca4dffe125c 100644 --- a/src/target/riscv_debug.c +++ b/src/target/riscv_debug.c @@ -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); }