aboutsummaryrefslogtreecommitdiff
path: root/git-hooks/commit-msg
diff options
context:
space:
mode:
authorJan Matyas <jan.matyas@codasip.com>2025-02-14 15:28:38 +0100
committerJan Matyas <jan.matyas@codasip.com>2025-03-14 10:40:40 +0100
commitc01427d30e17682e793e136fbcf2c523bf7db1c7 (patch)
tree715e79907b64cd24a1fc69e592841260ecd3729b /git-hooks/commit-msg
parent41a225460c3b9a6c1f61a0777f101ff009f56007 (diff)
downloadriscv-openocd-c01427d30e17682e793e136fbcf2c523bf7db1c7.zip
riscv-openocd-c01427d30e17682e793e136fbcf2c523bf7db1c7.tar.gz
riscv-openocd-c01427d30e17682e793e136fbcf2c523bf7db1c7.tar.bz2
riscv-011: Don't trigger semihosting before the target is examined
In riscv-011 target, the handle_halt() function, and thus also riscv_semihosting(), can get called from within examine() before the examination is actually complete! The chain of the function calls is: - examine() -> riscv011_poll() -> poll_target() -> handle_halt() -> riscv_semihosting() If the target is already halted due to a breakpoint (dcsr.cause = SWBP) at the time OpenOCD connects to it, semihosting will be attempted before completing the examination, and the examination will fail. This issue was observed on HiFive1 Rev A01. Hot-fix this by making shure that semihosting is not attempted before the target gets successfully examined. Change-Id: Iccfa0da35d47a430d8674131ebd2eb8e5e2922c0 Signed-off-by: Jan Matyas <jan.matyas@codasip.com>
Diffstat (limited to 'git-hooks/commit-msg')
0 files changed, 0 insertions, 0 deletions