riscv-openocd
riscv-openocd copied to clipboard
Drop the use of `-coreid` in RISC-V targets
Currently -coreid
is used in RISC-V targets as hartid
.
https://github.com/riscv-collab/riscv-openocd/blob/a4020f1a0207dc218812ee262ce861d81aa7962f/src/target/riscv/riscv-013.c#L1909
This is misleading.
(hartid
name is probably not the best. Here it's used just as an example.)
- ~By default
hartid
can be assigned based on target index~ See https://github.com/riscv-collab/riscv-openocd/issues/1147#issuecomment-2416145221 - RISC-V-specific
-hartid
configure option can be introduced. - Configuring
-coreid
on a RISC-V target should have the same effect as-hartid
and a deprecation message should be shown.