]> www.infradead.org Git - users/borneoa/openocd-next.git/commitdiff
target/arc: add RTT commands
authorChris Friedt <cfriedt@tenstorrent.com>
Mon, 9 Dec 2024 21:11:03 +0000 (16:11 -0500)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sun, 16 Feb 2025 16:24:41 +0000 (16:24 +0000)
Since RTT is architecture agnostic, add support for using it on
the ARC architecture as well.

Change-Id: Icd0dec105177a1a224bfb1a63f0be5f03561b166
Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/8720
Reviewed-by: zapb <dev@zapb.de>
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
src/target/arc.h
src/target/arc_cmd.c

index a351802ac6ffe251dfd73147d256bb91b3bdbfd4..4255840d1f01529d82752d3819922fb705eda78e 100644 (file)
@@ -22,6 +22,7 @@
 #include "target_request.h"
 #include "target_type.h"
 #include "helper/bits.h"
+#include "rtt/rtt.h"
 
 #include "arc_jtag.h"
 #include "arc_cmd.h"
index e7760b0378dd6c695967c0739de1fd1b785d9c71..bf8a8aa28bd1c901d1cad63e4e06bc666aadf51f 100644 (file)
@@ -906,5 +906,8 @@ const struct command_registration arc_monitor_command_handlers[] = {
                .usage = "",
                .chain = arc_core_command_handlers,
        },
+       {
+               .chain = rtt_target_command_handlers,
+       },
        COMMAND_REGISTRATION_DONE
 };