riscv-openocd/src
Evgeniy Naydanov a54d86f3d0 target/riscv: access registers via `reg->type`
* `int riscv_reg_get()` and `int riscv_reg_set()` are implemented in
  terms of `reg->type->get/set` instead of the other way around. This
  makes it easier to support custom behavior for some registers.
* Cacheability is determined by `reg->type` instead of
  `riscv_reg_impl_gdb_regno_cacheable()`.
* Issues with redirection of `priv` -> `dcsr` and `pc` -> `dpc` are
  addressed at the "topmost" level.
    - `priv` and `pc` are alvais invalid.
    - Fixed some issues, e.g. the first `pc` write printed-out an
      uninitialized value:
```
> reg pc 0
pc (/64): 0x000075da6b33db20
```

Change-Id: I514547f455d62b289fb5dee62753bf5d9aa3b8ae
Signed-off-by: Evgeniy Naydanov <evgeniy.naydanov@syntacore.com>
2024-12-20 14:57:09 +03:00
..
flash Merge up to fd62626dff from upstream 2024-11-12 17:25:33 +03:00
helper Merge up to 133dd9d669 from upstream 2024-12-18 12:41:19 +03:00
jtag Merge up to 133dd9d669 from upstream 2024-12-18 12:41:19 +03:00
pld pld: make get_pld_device_by_num() static 2024-11-23 13:46:59 +00:00
rtos Merge up to 133dd9d669 from upstream 2024-12-18 12:41:19 +03:00
rtt rtt: drop unused function rtt_started() 2024-11-23 13:46:35 +00:00
server Merge up to fd62626dff from upstream 2024-11-12 17:25:33 +03:00
svf openocd: convert 'unsigned' to 'unsigned int' 2024-10-05 15:46:25 +00:00
target target/riscv: access registers via `reg->type` 2024-12-20 14:57:09 +03:00
transport openocd: convert 'unsigned' to 'unsigned int' 2024-10-05 15:46:25 +00:00
xsvf openocd: convert 'unsigned' to 'unsigned int' 2024-10-05 15:46:25 +00:00
Makefile.am configure: Use pkg-config for jimtcl 2024-08-02 15:59:07 +00:00
hello.c hello: include hello.h 2023-05-18 10:13:41 +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 autoconf: Add support for code coverage 2024-11-16 14:18:57 +00:00
openocd.h openocd: src: replace the GPL-2.0-or-later license tag 2022-07-23 13:59:13 +00:00