diff options
author | Aleksey Lotosh <lotosh@gmail.com> | 2024-03-10 20:32:37 +0300 |
---|---|---|
committer | Aleksey Lotosh <lotosh@gmail.com> | 2024-04-30 10:50:51 +0300 |
commit | 69cf9babfbdb6f1b518ed6fe18bd88148c5a40eb (patch) | |
tree | 10bcdc2dae8792100944772ca98d4dbbff195f42 /git-hooks/commit-msg | |
parent | 687f00c06055026331fa34250dcb05c9f652c361 (diff) | |
download | riscv-openocd-69cf9babfbdb6f1b518ed6fe18bd88148c5a40eb.zip riscv-openocd-69cf9babfbdb6f1b518ed6fe18bd88148c5a40eb.tar.gz riscv-openocd-69cf9babfbdb6f1b518ed6fe18bd88148c5a40eb.tar.bz2 |
Add functions to decode RVC load and store instructions
For GDB to fully support hardware watchpoints, OpenOCD needs to tell GDB
which data address has been hit. OpenOCD relies on a target-specific
hit_watchpoint function to do this. If GDB is not given the address, it
will not print the hit variable name or its old and new value.
There does not seem to be a way for the hardware to tell us which
trigger
was hit (0.13 introduced the 'hit bit' but this is optional).
Alternatively,
we can decode the instruction at dpc and find out which memory address
it accesses.
This commit adds support for RVC (compressed) load and store
instructions.
Related to:
https://github.com/riscv-collab/riscv-openocd/issues/688
https://github.com/riscv-collab/riscv-openocd/pull/291
Diffstat (limited to 'git-hooks/commit-msg')
0 files changed, 0 insertions, 0 deletions