forked from auracaster/openocd
target/espressif: add semihosting support
ARM semihosting + some custom syscalls implemented for Espressif chips (ESP32, ESP32-S2, ESP32-S3) Signed-off-by: Erhan Kurubas <erhan.kurubas@espressif.com> Change-Id: Ic8174cf1cd344fa16d619b7b8405c9650e869443 Reviewed-on: https://review.openocd.org/c/openocd/+/7074 Tested-by: jenkins Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
This commit is contained in:
committed by
Antonio Borneo
parent
7dc4be3157
commit
bea4d65903
@@ -8,12 +8,14 @@
|
||||
#ifndef OPENOCD_TARGET_ESP_XTENSA_H
|
||||
#define OPENOCD_TARGET_ESP_XTENSA_H
|
||||
|
||||
#include <helper/command.h>
|
||||
#include <target/target.h>
|
||||
#include <target/xtensa/xtensa.h>
|
||||
#include "esp_xtensa.h"
|
||||
#include "esp_semihosting.h"
|
||||
|
||||
struct esp_xtensa_common {
|
||||
struct xtensa xtensa; /* must be the first element */
|
||||
struct esp_semihost_data semihost;
|
||||
};
|
||||
|
||||
static inline struct esp_xtensa_common *target_to_esp_xtensa(struct target *target)
|
||||
@@ -23,7 +25,8 @@ static inline struct esp_xtensa_common *target_to_esp_xtensa(struct target *targ
|
||||
|
||||
int esp_xtensa_init_arch_info(struct target *target,
|
||||
struct esp_xtensa_common *esp_xtensa,
|
||||
struct xtensa_debug_module_config *dm_cfg);
|
||||
struct xtensa_debug_module_config *dm_cfg,
|
||||
const struct esp_semihost_ops *semihost_ops);
|
||||
int esp_xtensa_target_init(struct command_context *cmd_ctx, struct target *target);
|
||||
void esp_xtensa_target_deinit(struct target *target);
|
||||
int esp_xtensa_arch_state(struct target *target);
|
||||
|
||||
Reference in New Issue
Block a user