aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAntonio Borneo <borneo.antonio@gmail.com>2022-10-16 23:56:23 +0200
committerAntonio Borneo <borneo.antonio@gmail.com>2022-10-21 18:14:46 +0000
commitb8735bbf7ed7eedb0590edbf2a22929b401887ba (patch)
tree8978e3513af84fa75f9a50935c2a0f2bd3b19378 /src
parent1f7d58daeef9d695529af0cc41c52095c8936c80 (diff)
downloadriscv-openocd-b8735bbf7ed7eedb0590edbf2a22929b401887ba.zip
riscv-openocd-b8735bbf7ed7eedb0590edbf2a22929b401887ba.tar.gz
riscv-openocd-b8735bbf7ed7eedb0590edbf2a22929b401887ba.tar.bz2
doc: fix riscv commands
- Fix the declaration of riscv command 'set_mem_access'. - Remove non existing riscv command 'set_scratch_ram'. - Add riscv commands 'info', 'reset_delays'; copy the description from the 'help' text. - Don't add riscv commands 'set_prefer_sba' and 'test_sba_config_reg' as they are marked as deprecated. - Ensure that 'test_sba_config_reg' prints a deprecation warning when used. Change-Id: I39dc3aec4e7f13b69ac19685f1b593790acdde83 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Signed-off-by: Jan Matyas <matyas@codasip.com> Reviewed-on: https://review.openocd.org/c/openocd/+/7268 Reviewed-by: Tim Newsome <tim@sifive.com> Tested-by: jenkins
Diffstat (limited to 'src')
-rw-r--r--src/target/riscv/riscv.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/target/riscv/riscv.c b/src/target/riscv/riscv.c
index ae0a737..4f24fb4 100644
--- a/src/target/riscv/riscv.c
+++ b/src/target/riscv/riscv.c
@@ -2744,6 +2744,9 @@ COMMAND_HANDLER(riscv_dmi_write)
COMMAND_HANDLER(riscv_test_sba_config_reg)
{
+ LOG_WARNING("Command \"riscv test_sba_config_reg\" is deprecated. "
+ "It will be removed in a future OpenOCD version.");
+
if (CMD_ARGC != 4) {
LOG_ERROR("Command takes exactly 4 arguments");
return ERROR_COMMAND_SYNTAX_ERROR;