From ee588442157786b172c293f9b177a5d9f0d5e39f Mon Sep 17 00:00:00 2001 From: Hang Xu Date: Wed, 29 Mar 2023 09:32:55 +0000 Subject: [PATCH] doc/openocd.texi: fix expose_csrs example The first part of the command should be only "riscv expose_csrs", the $_TARGETNAME value is not necessarily "riscv", in fact it is generally riscv.cpux. Signed-off-by: Hang Xu --- doc/openocd.texi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/openocd.texi b/doc/openocd.texi index b66627fed..b12215f61 100644 --- a/doc/openocd.texi +++ b/doc/openocd.texi @@ -10708,13 +10708,13 @@ CSRs. @example # Expose a single RISC-V CSR number 128 under the name "csr128": -$_TARGETNAME expose_csrs 128 +riscv expose_csrs 128 # Expose multiple RISC-V CSRs 128..132 under names "csr128" through "csr132": -$_TARGETNAME expose_csrs 128-132 +riscv expose_csrs 128-132 # Expose a single RISC-V CSR number 1996 under custom name "csr_myregister": -$_TARGETNAME expose_csrs 1996=myregister +riscv expose_csrs 1996=myregister @end example @end deffn