Skip to content

Releases: aap-sc/riscv-openocd

latest

27 Nov 19:12
Compare
Choose a tag to compare
latest Pre-release
Pre-release
fix incorrect parsing of names for custom csr registers

this commit fixes a regression introduced in
ba8c1eef5a32193d9b5dc80d681a4f18d1d94f11.

The regression was caused by removal of these lines:

```
-                       /* Register prefix: "csr_" or "custom_" */
-                       strcpy(name, reg_type);
-                       name[strlen(reg_type)] = '_';
```

causing all CSR names with custom names to be parsed as empty strings.