riscv-openocd icon indicating copy to clipboard operation
riscv-openocd copied to clipboard

Drop the use of `-coreid` in RISC-V targets

Open en-sc opened this issue 4 months ago • 6 comments

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.)

  1. ~By default hartid can be assigned based on target index~ See https://github.com/riscv-collab/riscv-openocd/issues/1147#issuecomment-2416145221
  2. RISC-V-specific -hartid configure option can be introduced.
  3. Configuring -coreid on a RISC-V target should have the same effect as -hartid and a deprecation message should be shown.

en-sc avatar Oct 10 '24 19:10 en-sc