xtensa: update XDM register map for TRAX support
[openocd.git] / src / target / xtensa / xtensa_chip.c
index c62992f625150a71eafcfb309ef38d10fbc8eaf8..668aa3acc71c06e89c3d09fecf6b300a692faf98 100644 (file)
@@ -15,6 +15,7 @@
 #include <target/arm_adi_v5.h>
 #include <rtos/rtos.h>
 #include "xtensa_chip.h"
+#include "xtensa_fileio.h"
 
 int xtensa_chip_init_arch_info(struct target *target, void *arch_info,
        struct xtensa_debug_module_config *dm_cfg)
@@ -30,7 +31,10 @@ int xtensa_chip_init_arch_info(struct target *target, void *arch_info,
 
 int xtensa_chip_target_init(struct command_context *cmd_ctx, struct target *target)
 {
-       return xtensa_target_init(cmd_ctx, target);
+       int ret = xtensa_target_init(cmd_ctx, target);
+       if (ret != ERROR_OK)
+               return ret;
+       return xtensa_fileio_init(target);
 }
 
 int xtensa_chip_arch_state(struct target *target)
@@ -45,10 +49,12 @@ static int xtensa_chip_poll(struct target *target)
 
        if (old_state != TARGET_HALTED && target->state == TARGET_HALTED) {
                /*Call any event callbacks that are applicable */
-               if (old_state == TARGET_DEBUG_RUNNING)
+               if (old_state == TARGET_DEBUG_RUNNING) {
                        target_call_event_callbacks(target, TARGET_EVENT_DEBUG_HALTED);
-               else
+               } else {
+                       xtensa_fileio_detect_proc(target);
                        target_call_event_callbacks(target, TARGET_EVENT_HALTED);
+               }
        }
 
        return ret;
@@ -193,4 +199,7 @@ struct target_type xtensa_chip_target = {
        .gdb_query_custom = xtensa_gdb_query_custom,
 
        .commands = xtensa_command_handlers,
+
+       .get_gdb_fileio_info = xtensa_get_gdb_fileio_info,
+       .gdb_fileio_end = xtensa_gdb_fileio_end,
 };

Linking to existing account procedure

If you already have an account and want to add another login method you MUST first sign in with your existing account and then change URL to read https://review.openocd.org/login/?link to get to this page again but this time it'll work for linking. Thank you.

SSH host keys fingerprints

1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=..              |
|+o..   .         |
|*.o   . .        |
|+B . . .         |
|Bo. = o S        |
|Oo.+ + =         |
|oB=.* = . o      |
| =+=.+   + E     |
|. .=o   . o      |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)