From 9bb0a4558bc84b8be63aa937d4b7b9283614f132 Mon Sep 17 00:00:00 2001 From: Chris Friedt Date: Mon, 9 Dec 2024 16:11:03 -0500 Subject: [PATCH] target/arc: add RTT commands Since RTT is architecture agnostic, add support for using it on the ARC architecture as well. Change-Id: Icd0dec105177a1a224bfb1a63f0be5f03561b166 Signed-off-by: Chris Friedt Reviewed-on: https://review.openocd.org/c/openocd/+/8720 Reviewed-by: zapb Tested-by: jenkins Reviewed-by: Antonio Borneo --- src/target/arc.h | 1 + src/target/arc_cmd.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/target/arc.h b/src/target/arc.h index a351802ac..4255840d1 100644 --- a/src/target/arc.h +++ b/src/target/arc.h @@ -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" diff --git a/src/target/arc_cmd.c b/src/target/arc_cmd.c index e7760b037..bf8a8aa28 100644 --- a/src/target/arc_cmd.c +++ b/src/target/arc_cmd.c @@ -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 };