aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorKirill Radkin <kirill.radkin@syntacore.com>2023-10-30 17:48:00 +0300
committerKirill Radkin <kirill.radkin@syntacore.com>2024-02-13 16:27:12 +0300
commit5003b3642c93935a4d9ce1650f073e54ded4bc09 (patch)
treeb33192cbc459abb6b89ae0d4aeb6ffbd27e03034 /doc
parent87331a82a29a5aeb222543b6876e0208be70ea41 (diff)
downloadriscv-openocd-5003b3642c93935a4d9ce1650f073e54ded4bc09.zip
riscv-openocd-5003b3642c93935a4d9ce1650f073e54ded4bc09.tar.gz
riscv-openocd-5003b3642c93935a4d9ce1650f073e54ded4bc09.tar.bz2
target/riscv: Improve riscv controls that manage the set of available triggers for watchpoints
Add more debug messages connected with triggers. Update names for internal flags to make them more clarified. Change-Id: I5642346ce4a1e9bf79b22cdbf36bd757a7beffa8 Signed-off-by: Kirill Radkin <kirill.radkin@syntacore.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/openocd.texi28
1 files changed, 20 insertions, 8 deletions
diff --git a/doc/openocd.texi b/doc/openocd.texi
index e7de90b..fbf9daf 100644
--- a/doc/openocd.texi
+++ b/doc/openocd.texi
@@ -11369,16 +11369,28 @@ OpenOCD. When off, they generate a breakpoint exception handled internally.
The commands below can be used to prevent OpenOCD from using certain RISC-V trigger features.
For example in cases when there are known issues in the target hardware.
-@deffn {Command} {riscv set_enable_eq_match_trigger} [on|off]
-When on (default), allow OpenOCD to use exact-match triggers in watchpoints.
-@end deffn
+@deffn {Command} {riscv set_enable_trigger_feature} [(@option{eq}|@option{napot}|@option{ge_lt}|@option{all}) (@option{wp}|@option{none})]
+Control which RISC-V trigger features can be used by OpenOCD placing watchpoints.
+All trigger features are allowed by default. Only new watchpoints, inserted after this command,
+are affected (watchpoints that were already placed before are not changed).
-@deffn {Command} {riscv set_enable_napot_trigger} [on|off]
-When on (default), allow OpenOCD to use NAPOT trigger in watchpoints.
-@end deffn
+The first argument selects one of the configurable RISC-V trigger features:
+
+@itemize @minus
+@item @option{eq}: Equality match trigger
+@item @option{napot}: NAPOT trigger
+@item @option{ge_lt}: Chained pair of `greater-equal` and `less-than` triggers
+@item @option{all}: All trigger features which were described above
+@end itemize
+
+The second argument configures how OpenOCD should use the selected trigger feature:
+
+@itemize @minus
+@item @option{wp}: Enable this trigger feature for watchpoints - allow OpenOCD to use it. (Default.)
+@item @option{none}: Disable the use of this trigger feature. OpenOCD will not attempt to use it.
+@end itemize
-@deffn {Command} {riscv set_enable_ge_lt_trigger} [on|off]
-When on (default), allow OpenOCD to use a pair of chained less-than & greater-than triggers in watchpoints.
+With no parameters, prints current trigger features configuration.
@end deffn
@subsection RISC-V Authentication Commands