target/arc_cmd: Improve argument checks for commands 23/5523/4
authorEvgeniy Didin <didin@synopsys.com>
Thu, 12 Mar 2020 16:05:37 +0000 (19:05 +0300)
committerOleksij Rempel <linux@rempel-privat.de>
Fri, 27 Mar 2020 07:09:41 +0000 (07:09 +0000)
commitf00070edaf8fbe7e49c44845c440086d55288f28
tree87fd4ea2cd4dd1380a2e5cf297a711492cee34b9
parent5ceae0eef4c4cdcb1c54807a93144b2700593d44
target/arc_cmd: Improve argument checks for commands

Add more argument check for "add-reg" command.

Changes since first revision:
-Removed arguments limitation(50 maximum) for "arc_set_reg_exists".

Changes:
25.03:
Removed inconsistency in "add-reg" function. Actually
"-type" option is optional and if it is not set,
register type is "int".

Change-Id: Ia21e6baf4fbda162f7811cd0fe305fc86ddafcfd
Signed-off-by: Evgeniy Didin <didin@synopsys.com>
Reviewed-on: http://openocd.zylin.com/5523
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-by: Oleksij Rempel <linux@rempel-privat.de>
src/target/arc_cmd.c