target: arc: rewrite command 'arc jtag get-core-reg' as COMMAND_HANDLER
commit16af56f6001782752d23567ca78823e2db9c5828
authorAntonio Borneo <borneo.antonio@gmail.com>
Mon, 19 Dec 2022 12:38:58 +0000 (19 13:38 +0100)
committerAntonio Borneo <borneo.antonio@gmail.com>
Fri, 3 Feb 2023 22:46:31 +0000 (3 22:46 +0000)
tree543005ab8b4f766803c33b37f3573fb8f188a43a
parent551d85b123b38d34e15b4e978250ebdfe7b952f7
target: arc: rewrite command 'arc jtag get-core-reg' as COMMAND_HANDLER

This also fixes an incorrect return ERROR_OK from a jim command.

Change-Id: I1f9cf5d1dfa38b8a06042b5f54209e6ee2fc4e0e
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/7409
Tested-by: jenkins
Reviewed-by: Evgeniy Didin <didin@synopsys.com>
src/target/arc_cmd.c