target: arc: rewrite command 'arc get-reg-field' as COMMAND_HANDLER
commit996d6f383dfcffbc4550daedb622d3d006e8cd37
authorAntonio Borneo <borneo.antonio@gmail.com>
Mon, 19 Dec 2022 16:03:03 +0000 (19 17:03 +0100)
committerAntonio Borneo <borneo.antonio@gmail.com>
Fri, 3 Feb 2023 22:47:01 +0000 (3 22:47 +0000)
tree3d3c50564312a573f8fcd93de89c38bc6cd6b7a4
parentf0cb5b027238f6beb0bee80a9d385716923ae6eb
target: arc: rewrite command 'arc get-reg-field' as COMMAND_HANDLER

This also fixes several incorrect return ERROR_xxx from a jim
command.

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