Files
openocd/src/target
Sriram Shanmuga f5ce311103 target/riscv: improve error messaging in case sbasize is zero
Imported from
https://github.com/riscv-collab/riscv-openocd/pull/1274

From: Sriram Shanmuga <sriramharshalee@gmail.com>

RISC-V Debug Specification v1.0 [3.14.22. System Bus Access Control and
Status (`sbcs`, at 0x38)] states in `sbasize` field description:
> Width of system bus addresses in bits. (0 indicates there is no bus
access support.)

Before the patch, the error message did not include the information
about `sbcs.sbasize` being zero wich made it quite undescriptive:
```
[riscv.cpu] Turning off memory sampling because it failed.

```

Fixes #1270

Change-Id: I5402dd57dc9a81f65ee4c67d24e11c366006427c
Signed-off-by: Sriram Shanmuga <sriramharshalee@gmail.com>
Signed-off-by: Evgeniy Naydanov <evgeniy.naydanov@syntacore.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/9142
Tested-by: jenkins
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
2025-11-12 20:32:33 +00:00
..
2025-02-16 16:24:41 +00:00
2022-09-13 22:13:58 +00:00
2025-11-02 13:50:21 +00:00
2024-06-23 09:30:43 +00:00
2024-06-23 09:30:43 +00:00
2022-09-13 22:13:58 +00:00
2025-09-06 11:41:33 +00:00
2022-09-13 22:13:58 +00:00
2025-08-02 12:59:33 +00:00
2025-09-06 11:41:51 +00:00