riscv-openocd/src
Jan Matyas 8c0a1cde78 RISC-V Semihosting 2 of 3: Refactor magic sequence detection
Refactor (clean up) the code in riscv_semihosting.c by moving
the magic sequence detection to its own function.

Cleanup the debug prints denoting the semihosting outcome
so that they are easier to understand when reading the OpenOCD's
verbose (debug) log.

Use le_to_h_u32() to convert memory buffer to instruction code
because RISC-V instructions are always little endian.
(target_buffer_get_u32() was incorrect for that reason.)

Change-Id: I3a3ce991336ceeeff023d459d0e28558059554e0
Signed-off-by: Jan Matyas <jan.matyas@codasip.com>
2025-01-20 08:28:17 +01:00
..
flash Merge up to fd62626dff from upstream 2024-11-12 17:25:33 +03:00
helper Merge up to 133dd9d669 from upstream 2024-12-18 12:41:19 +03:00
jtag Merge up to 133dd9d669 from upstream 2024-12-18 12:41:19 +03:00
pld pld: make get_pld_device_by_num() static 2024-11-23 13:46:59 +00:00
rtos Merge up to 133dd9d669 from upstream 2024-12-18 12:41:19 +03:00
rtt rtt: drop unused function rtt_started() 2024-11-23 13:46:35 +00:00
server Merge up to fd62626dff from upstream 2024-11-12 17:25:33 +03:00
svf openocd: convert 'unsigned' to 'unsigned int' 2024-10-05 15:46:25 +00:00
target RISC-V Semihosting 2 of 3: Refactor magic sequence detection 2025-01-20 08:28:17 +01:00
transport openocd: convert 'unsigned' to 'unsigned int' 2024-10-05 15:46:25 +00:00
xsvf openocd: convert 'unsigned' to 'unsigned int' 2024-10-05 15:46:25 +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 autoconf: Add support for code coverage 2024-11-16 14:18:57 +00:00
openocd.h openocd: src: replace the GPL-2.0-or-later license tag 2022-07-23 13:59:13 +00:00