OpenOCD
|
Hold RISC-V semihosting support. More...
Go to the source code of this file.
Functions | |
enum semihosting_result | riscv_semihosting (struct target *target, int *retval) |
Check for and process a semihosting request using the ARM protocol). More... | |
void | riscv_semihosting_init (struct target *target) |
Initialize RISC-V semihosting. More... | |
static int | riscv_semihosting_post_result (struct target *target) |
static int | riscv_semihosting_setup (struct target *target, int enable) |
Called via semihosting->setup() later, after the target is known, usually on the first semihosting command. More... | |
Hold RISC-V semihosting support.
The RISC-V code is inspired from ARM semihosting.
Details can be found in chapter 8 of DUI0203I_rvct_developer_guide.pdf from ARM Ltd.
Definition in file riscv_semihosting.c.
enum semihosting_result riscv_semihosting | ( | struct target * | target, |
int * | retval | ||
) |
Check for and process a semihosting request using the ARM protocol).
This is meant to be called when the target is stopped due to a debug mode entry.
target | Pointer to the target to process. |
retval | Pointer to a location where the return code will be stored |
Definition at line 42 of file riscv_semihosting.c.
References riscv_semihosting_post_result(), riscv_semihosting_setup(), and semihosting_common_init().
Referenced by handle_halt(), and riscv_openocd_poll().
void riscv_semihosting_init | ( | struct target * | target | ) |
Initialize RISC-V semihosting.
Use common ARM code.
Definition at line 42 of file riscv_semihosting.c.
Referenced by riscv_init_target().
|
static |
Definition at line 180 of file riscv_semihosting.c.
References GDB_REGNO_A0, LOG_DEBUG, semihosting::result, riscv_set_register(), and target::semihosting.
Referenced by riscv_semihosting().
|
static |
Called via semihosting->setup() later, after the target is known, usually on the first semihosting command.
Definition at line 169 of file riscv_semihosting.c.
References ERROR_OK, LOG_DEBUG, target::semihosting, semihosting::setup_time, and target_name().
Referenced by riscv_semihosting().