riscv-openocd/src
Tomas Vanek ed4e584104 jtag/core: fix segfault when adapter driver has no reset method
xlnx-pcie-xvc and linuxspidev adapter drivers does not implement
the reset method.
Although it is likely both adapters will implement the method in
the near future, avoid segfault and return an error instead.

Change-Id: If8ddf165dbc563cf6d64b2094968151075778ba7
Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
Fixes: commit 8850eb8f2c ("swd: get rid of jtag queue to assert/deassert srst")
Reviewed-on: https://review.openocd.org/c/openocd/+/8735
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Tested-by: jenkins
2025-02-16 16:31:06 +00:00
..
flash jtag: drop useless typedef tap_state_t 2025-02-16 16:23:03 +00:00
helper options.c: option --help should yield exit code 0 2025-02-16 16:28:07 +00:00
jtag jtag/core: fix segfault when adapter driver has no reset method 2025-02-16 16:31:06 +00:00
pld jtag: drop useless typedef tap_state_t 2025-02-16 16:23:03 +00:00
rtos rtos/hwthread: Use LOG_TARGET_xxx() 2025-02-11 11:53:59 +00:00
rtt rtt: drop useless typedefs 2025-02-16 16:20:12 +00:00
server helper: list: rename macro clashing with sys/queue.h 2025-01-12 11:09:31 +00:00
svf jtag: drop useless typedef tap_state_t 2025-02-16 16:23:03 +00:00
target target/cortex_m: call adapter_deassert_reset() only if srst is configured 2025-02-16 16:30:28 +00:00
transport openocd: convert 'unsigned' to 'unsigned int' 2024-10-05 15:46:25 +00:00
xsvf jtag: drop useless typedef tap_state_t 2025-02-16 16:23:03 +00:00
Makefile.am configure: Use pkg-config for jimtcl 2024-08-02 15:59:07 +00:00
hello.c hello: include hello.h 2023-05-18 10:13:41 +00:00
hello.h openocd: src: replace the GPL-2.0-or-later license tag 2022-07-23 13:59:13 +00:00
main.c openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
openocd.c openocd: drop useless typedef 2025-02-16 16:20:30 +00:00
openocd.h openocd: src: replace the GPL-2.0-or-later license tag 2022-07-23 13:59:13 +00:00