mirror of
git://git.code.sf.net/p/openocd/code
synced 2025-07-19 04:48:44 +10:00
Generic Xtensa LX support extends the original Espressif/Xtensa patch-set to support arbitrary Xtensa configurations, as defined in a core-specific .cfg file. Not yet fully-featured. Additional functionality to be added: - Xtensa NX support - DAP/SWD support - File-IO support - Generic Xtensa multi-core support Valgrind-clean, no new Clang analyzer warnings Signed-off-by: Ian Thompson <ianst@cadence.com> Change-Id: I08e7bf8fa57c25b5d0cb75a1aa7a2ac13a380c52 Reviewed-on: https://review.openocd.org/c/openocd/+/7055 Tested-by: jenkins Reviewed-by: Erhan Kurubas <erhan.kurubas@espressif.com> Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
36 lines
1.4 KiB
C
36 lines
1.4 KiB
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
/***************************************************************************
|
|
* Generic ESP xtensa target implementation for OpenOCD *
|
|
* Copyright (C) 2019 Espressif Systems Ltd. *
|
|
***************************************************************************/
|
|
|
|
#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>
|
|
|
|
struct esp_xtensa_common {
|
|
struct xtensa xtensa; /* must be the first element */
|
|
};
|
|
|
|
static inline struct esp_xtensa_common *target_to_esp_xtensa(struct target *target)
|
|
{
|
|
return container_of(target->arch_info, struct esp_xtensa_common, xtensa);
|
|
}
|
|
|
|
int esp_xtensa_init_arch_info(struct target *target,
|
|
struct esp_xtensa_common *esp_xtensa,
|
|
struct xtensa_debug_module_config *dm_cfg);
|
|
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);
|
|
void esp_xtensa_queue_tdi_idle(struct target *target);
|
|
int esp_xtensa_breakpoint_add(struct target *target, struct breakpoint *breakpoint);
|
|
int esp_xtensa_breakpoint_remove(struct target *target, struct breakpoint *breakpoint);
|
|
int esp_xtensa_poll(struct target *target);
|
|
|
|
#endif /* OPENOCD_TARGET_ESP_XTENSA_H */
|