aboutsummaryrefslogtreecommitdiff
path: root/contrib/rpc_examples/ocd_rpc_example.py
diff options
context:
space:
mode:
authorJan Matyas <jan.matyas@codasip.com>2025-01-07 09:16:10 +0100
committerJan Matyas <jan.matyas@codasip.com>2025-01-20 08:28:17 +0100
commit8c0a1cde78abc923079bfc7b95cc508029c1614f (patch)
tree92217be658d1776f49aad31eccc0fadc43f343f3 /contrib/rpc_examples/ocd_rpc_example.py
parenteb9ba216e199a3a93f976246823c7a9653ad5064 (diff)
downloadriscv-openocd-8c0a1cde78abc923079bfc7b95cc508029c1614f.zip
riscv-openocd-8c0a1cde78abc923079bfc7b95cc508029c1614f.tar.gz
riscv-openocd-8c0a1cde78abc923079bfc7b95cc508029c1614f.tar.bz2
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>
Diffstat (limited to 'contrib/rpc_examples/ocd_rpc_example.py')
0 files changed, 0 insertions, 0 deletions