diff --git a/tcl/target/gd32vf103.cfg b/tcl/target/gd32vf103.cfg index 52378692a..026437b82 100644 --- a/tcl/target/gd32vf103.cfg +++ b/tcl/target/gd32vf103.cfg @@ -96,7 +96,7 @@ $_TARGETNAME configure -event reset-assert { # Since haltreq is write-only and there's no way to leave it unchanged, # we'd have to figure out its proper value anyway. set val $dmcontrol_dmactive - if {$_RESETMODE ne "run"} { + if {$halt} { set val [expr {$val | $dmcontrol_haltreq}] } riscv dmi_write $dmcontrol $val @@ -131,14 +131,3 @@ $_TARGETNAME configure -event reset-deassert-post { } } } - -# Capture the mode of a given reset so that we can use it later in the -# reset-assert handler. -proc init_reset { mode } { - global _RESETMODE - set _RESETMODE $mode - - if {[using_jtag]} { - jtag arp_init-reset - } -}