semihosting: move semihosting_result_t from riscv.h to the semihosting_common.h

These enum values are useful for the arch level semihosting call handlers.
Currently riscv uses them, we also need similar return codes for the xtensa.

Signed-off-by: Erhan Kurubas <erhan.kurubas@espressif.com>
Change-Id: I8f63749cc203c59b07862f33edf3c393cd7e33a9
Reviewed-on: https://review.openocd.org/c/openocd/+/7039
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
This commit is contained in:
Erhan Kurubas
2022-06-20 15:34:10 +02:00
committed by Antonio Borneo
parent 6eda28ef67
commit 06c3240155
4 changed files with 31 additions and 29 deletions

View File

@@ -103,6 +103,13 @@ enum semihosting_redirect_config {
SEMIHOSTING_REDIRECT_CFG_ALL,
};
enum semihosting_result {
SEMIHOSTING_NONE, /* Not halted for a semihosting call. */
SEMIHOSTING_HANDLED, /* Call handled, and target was resumed. */
SEMIHOSTING_WAITING, /* Call handled, target is halted waiting until we can resume. */
SEMIHOSTING_ERROR /* Something went wrong. */
};
struct target;
/*