]> git.sur5r.net Git - openocd/commit
Rework/update ARM semihosting
authorLiviu Ionescu <ilg@livius.net>
Sun, 13 May 2018 15:39:06 +0000 (18:39 +0300)
committerMatthias Welwarsky <matthias@welwarsky.de>
Mon, 4 Jun 2018 08:16:08 +0000 (09:16 +0100)
commit2517bae6c1438350255dca63e7d1c1e06c64b6bb
tree707cce397bf68d1fd040f7f2a4c17e722257fdcd
parentcdf1e826eb23c29de1019ce64125f644f01b0afe
Rework/update ARM semihosting

In 2016, ARM released the second edition of the semihosting specs
("Semihosting for AArch32 and AArch64"), adding support for 64-bits.

To ease the reuse of the semihosting logic for other platforms
(like RISC-V), the semihosting code was isolated from the ARM
target and updated to the latest specs.

The new code is already in use since January (in GNU MCU Eclipse
OpenOCD) and no problems were reported, neither for ARM nor for
RISC-V targets, after more than 7K downloads.

The 2 new files were formatted with uncrustify.

Change-Id: Ie84dbd86a547323bb8a5d24eab68fc7dad013d96
Signed-off-by: Liviu Ionescu <ilg@livius.net>
Reviewed-on: http://openocd.zylin.com/4518
Tested-by: jenkins
Reviewed-by: Matthias Welwarsky <matthias@welwarsky.de>
13 files changed:
doc/openocd.texi
src/server/gdb_server.c
src/target/Makefile.am
src/target/arm.h
src/target/arm_semihosting.c
src/target/arm_semihosting.h
src/target/armv4_5.c
src/target/armv7m.c
src/target/armv8.c
src/target/nds32.c
src/target/semihosting_common.c [new file with mode: 0644]
src/target/semihosting_common.h [new file with mode: 0644]
src/target/target.h