]> www.infradead.org Git - users/borneoa/openocd-next.git/commitdiff
driver: vdebug: fix mode of cmd 'vdebug mem_path'
authorAntonio Borneo <borneo.antonio@gmail.com>
Sun, 11 Dec 2022 10:08:32 +0000 (11:08 +0100)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 17 Dec 2022 09:33:06 +0000 (09:33 +0000)
The command 'vdebug mem_path' is reported in the documentation as
'{Config Command}', but the code sets mode = COMMAND_ANY.
The code of the commands sets some value that is only used during
the init phase, so the documentation is correct.

Change mode of command 'vdebug mem_path' to COMMAND_CONFIG.

Change-Id: Icb940fe382cbc75015273b35dcc8a88fc2a7d0ac
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/7395
Tested-by: jenkins
Reviewed-by: Jacek Wuwer <jacekmw8@gmail.com>
src/jtag/drivers/vdebug.c

index ef7a49332cc02815e25735890d200df3d16991a8..7898e9d9b700ed568161a67c5e31e90bbfddd7c1 100644 (file)
@@ -1246,7 +1246,7 @@ static const struct command_registration vdebug_command_handlers[] = {
        {
                .name = "mem_path",
                .handler = &vdebug_set_mem,
-               .mode = COMMAND_ANY,
+               .mode = COMMAND_CONFIG,
                .help = "set the design memory for the code load",
                .usage = "<path> <base_address> <size>",
        },