From 6f05a299957a4fc0809ce4f550e64d0a2ffcedae Mon Sep 17 00:00:00 2001 From: YenHaoChen Date: Thu, 26 Sep 2024 10:10:24 +0800 Subject: [PATCH] Only enter debug mode once with -H flag (halt_on_reset) --- riscv/execute.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/riscv/execute.cc b/riscv/execute.cc index e0a6e5900..5b8e52382 100644 --- a/riscv/execute.cc +++ b/riscv/execute.cc @@ -217,6 +217,7 @@ void processor_t::step(size_t n) } else if (halt_request == HR_GROUP) { enter_debug_mode(DCSR_CAUSE_GROUP, 0); } else if (state.dcsr->halt) { + state.dcsr->halt = false; enter_debug_mode(DCSR_CAUSE_HALT, 0); } }