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 <xuhang@eswincomputing.com>
This commit is contained in:
parent
e6006503cb
commit
ee58844215
|
@ -10708,13 +10708,13 @@ CSRs.
|
||||||
|
|
||||||
@example
|
@example
|
||||||
# Expose a single RISC-V CSR number 128 under the name "csr128":
|
# 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":
|
# 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":
|
# 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 example
|
||||||
@end deffn
|
@end deffn
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue