diff options
author | Antonio Borneo <borneo.antonio@gmail.com> | 2022-12-11 11:08:32 +0100 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2022-12-17 09:33:06 +0000 |
commit | 0a829efda5c254ceca2371edb38e9b0e4a998706 (patch) | |
tree | b4df725618c2903fe80ebe519d08cdf4cebe051b /src | |
parent | 2b6fe8f1ab739798309b47f7b3a664894ba43a19 (diff) | |
download | riscv-openocd-0a829efda5c254ceca2371edb38e9b0e4a998706.zip riscv-openocd-0a829efda5c254ceca2371edb38e9b0e4a998706.tar.gz riscv-openocd-0a829efda5c254ceca2371edb38e9b0e4a998706.tar.bz2 |
driver: vdebug: fix mode of cmd 'vdebug mem_path'
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/jtag/drivers/vdebug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jtag/drivers/vdebug.c b/src/jtag/drivers/vdebug.c index ef7a493..7898e9d 100644 --- a/src/jtag/drivers/vdebug.c +++ b/src/jtag/drivers/vdebug.c @@ -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>", }, |