semihosting: reorganize semihosting commands
commita99bf2ea9449d0e8120682feb2bedc398adab8b2
authorTarek BOCHKATI <tarek.bouchkati@gmail.com>
Tue, 25 Feb 2020 18:35:44 +0000 (25 19:35 +0100)
committerTomas Vanek <vanekt@fbl.cz>
Tue, 10 Mar 2020 20:20:22 +0000 (10 20:20 +0000)
tree55699e8dae7a5bde3a59c627e3aa6c1590c0a23d
parent123e10288df62e6f66426cdab7adb93fd7348d5f
semihosting: reorganize semihosting commands

the same semihosting handlers chain is declared twice:
 1. in src/target/armv4_5.c
 2. in src/target/riscv/riscv.c

to make it simpler we moved the declaration into
'src/target/semihosting_common.c' under semihosting_common_handlers[].
then we used this into both of armv4_5.c and riscv.c

Change-Id: If813b3fd5eb2476658f1308f741c4e805141f617
Signed-off-by: Tarek BOCHKATI <tarek.bouchkati@gmail.com>
Reviewed-on: http://openocd.zylin.com/5473
Tested-by: jenkins
Reviewed-by: Muhammad Omair Javaid <omair.javaid@linaro.org>
Reviewed-by: Tim Newsome <tim@sifive.com>
Reviewed-by: Liviu Ionescu <ilg@livius.net>
src/target/armv4_5.c
src/target/riscv/riscv.c
src/target/semihosting_common.c