diff options
author | Erhan Kurubas <erhan.kurubas@espressif.com> | 2023-07-10 23:47:06 +0200 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2023-12-10 13:31:57 +0000 |
commit | 4003762177b1aec2ab27eaa6946b47f13c457bbc (patch) | |
tree | ddeb6b57c126b8f29d2796249fe730b4e3f7a2ed /src/target/espressif/esp_xtensa.c | |
parent | d06d8ea3e4d0057dd13a6dac792b1ad7c246aebb (diff) | |
download | riscv-openocd-4003762177b1aec2ab27eaa6946b47f13c457bbc.zip riscv-openocd-4003762177b1aec2ab27eaa6946b47f13c457bbc.tar.gz riscv-openocd-4003762177b1aec2ab27eaa6946b47f13c457bbc.tar.bz2 |
target/espressif: add algorithm support to xtensa chips
Also includes esp_xtensa flasher stub jumper binary.
Signed-off-by: Erhan Kurubas <erhan.kurubas@espressif.com>
Change-Id: I054ce31033ca6a87afe9b5325b545338a7d8fe8f
Reviewed-on: https://review.openocd.org/c/openocd/+/7772
Tested-by: jenkins
Reviewed-by: Ian Thompson <ianst@cadence.com>
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Diffstat (limited to 'src/target/espressif/esp_xtensa.c')
-rw-r--r-- | src/target/espressif/esp_xtensa.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/target/espressif/esp_xtensa.c b/src/target/espressif/esp_xtensa.c index 0bd2cdd..11895d2 100644 --- a/src/target/espressif/esp_xtensa.c +++ b/src/target/espressif/esp_xtensa.c @@ -12,10 +12,12 @@ #include <stdbool.h> #include <stdint.h> #include <target/smp.h> -#include "esp_xtensa_apptrace.h" #include <target/register.h> +#include "esp.h" #include "esp_xtensa.h" +#include "esp_xtensa_apptrace.h" #include "esp_semihosting.h" +#include "esp_xtensa_algorithm.h" #define ESP_XTENSA_DBGSTUBS_UPDATE_DATA_ENTRY(_e_) \ do { \ @@ -68,6 +70,10 @@ int esp_xtensa_init_arch_info(struct target *target, int ret = xtensa_init_arch_info(target, &esp_xtensa->xtensa, dm_cfg); if (ret != ERROR_OK) return ret; + ret = esp_common_init(&esp_xtensa->esp, &xtensa_algo_hw); + if (ret != ERROR_OK) + return ret; + esp_xtensa->semihost.ops = (struct esp_semihost_ops *)semihost_ops; esp_xtensa->apptrace.hw = &esp_xtensa_apptrace_hw; return ERROR_OK; |