aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTarek BOCHKATI <tarek.bouchkati@gmail.com>2020-02-25 19:44:58 +0100
committerAntonio Borneo <borneo.antonio@gmail.com>2020-03-12 09:48:56 +0000
commit221fe49879607096acad42c9db9f68f852a2fbe7 (patch)
treebbc8b622f5e4edd85d94870d2e9bc0206fe1b9da
parentafe899f938a8edb3657c9455fc5caefcaef7e65f (diff)
semihosting: add semihosting handlers to AArch64
note: this works only when the PE is in AArch64 state Change-Id: Id6a336ca7d201df72bd1aaaeccce4185473fc1bd Signed-off-by: Tarek BOCHKATI <tarek.bouchkati@gmail.com> Reviewed-on: http://openocd.zylin.com/5474 Tested-by: jenkins Reviewed-by: Muhammad Omair Javaid <omair.javaid@linaro.org> Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
-rw-r--r--src/target/aarch64.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/target/aarch64.c b/src/target/aarch64.c
index 3918b157..87176f63 100644
--- a/src/target/aarch64.c
+++ b/src/target/aarch64.c
@@ -2782,8 +2782,17 @@ static const struct command_registration aarch64_exec_command_handlers[] = {
COMMAND_REGISTRATION_DONE
};
+extern const struct command_registration semihosting_common_handlers[];
+
static const struct command_registration aarch64_command_handlers[] = {
{
+ .name = "arm",
+ .mode = COMMAND_ANY,
+ .help = "ARM Command Group",
+ .usage = "",
+ .chain = semihosting_common_handlers
+ },
+ {
.chain = armv8_command_handlers,
},
{