riscv-openocd/src
Parshintsev Anatoly a8fedebcb4 [riscv] refactor functions that register read/write via progbuf
The motivation for this refactor is to fixup error handling for some
corner cases. These functions attempt to cache S0 register and only then
perform a bunch of extra checks to figure out if the requested register
is valid one in this context. The problem is that there are few corner
cases when _*progbuf functions could receive a GPR as an input. For
example, an abstract read could fail (for whatever reason) leading to
infinite recursion:

````
save S0 -> read S0 -> save S0 -> read S0 -> ...
```

The case described above could be fixed by adding extra sanitity checks,
however I decided to make these functions more modular since I find
self-contained functions easier to read.

Change-Id: I01f57bf474ca45ebb67a30cd4d8fdef21f307c7d
Signed-off-by: Parshintsev Anatoly <anatoly.parshintsev@syntacore.com>
2023-08-15 17:54:00 +03:00
..
flash Merge commit 'a3ed12401b1f7d9578fb7da881d3504e07acfc27' into from_upstream 2023-07-12 16:32:38 -07:00
helper Merge commit '228fe7300c7df7aa05ba2c0bc19edde6d0156401' into from_upstream 2023-05-04 14:38:10 -07:00
jtag Merge commit 'a3ed12401b1f7d9578fb7da881d3504e07acfc27' into from_upstream 2023-07-12 16:32:38 -07:00
pld fix leaky file-handle in virtex2 driver 2022-10-08 07:54:49 +00:00
rtos rtos/hwthread: Call rtos_free_threadlist() again. 2023-07-06 10:40:28 -07:00
rtt openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
server src: fix clang15 compiler warnings 2023-07-20 23:09:06 +02:00
svf openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
target [riscv] refactor functions that register read/write via progbuf 2023-08-15 17:54:00 +03:00
transport adapter: Improve three adapter-related prints 2023-01-15 14:57:25 +00:00
xsvf openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
Makefile.am openocd: build: add SPDX tag 2022-07-23 13:06:38 +00:00
hello.c openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
hello.h openocd: src: replace the GPL-2.0-or-later license tag 2022-07-23 13:59:13 +00:00
main.c openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
openocd.c openocd: revert workarounds for 'expr' syntax change 2023-01-15 14:46:57 +00:00
openocd.h openocd: src: replace the GPL-2.0-or-later license tag 2022-07-23 13:59:13 +00:00