-
Notifications
You must be signed in to change notification settings - Fork 328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drop the use of -coreid
in RISC-V targets
#1147
Comments
Hi @en-sc I agree that the name
I am not sure I understand this fully. Where would the hard index be taken from if
That'd be my preference. Furthermore:
|
You are right. Updated the description.
From the order the targets are created in:
IMHO it's a nice default, considering that the targets are usually the same anyway (SMP) (especially when they are connected to the same DM). Moreover, this will make validation of And there is also the case of a platform with multiple DMs (here |
I'd strongly prefer to not have implicitly incrementing hart numbers for these reasons:
Furthermore, it'd be good to check the uniqueness of hart number for a given debug module (that is, for a given pair of JTAG TAP and |
I see your point, however I'd like to disagree:
This is not true. AFAIU, if harts with omitted hart ID are on the same DM -- it's an error that is not currently diagnosed.
AFAIU, this is a non-default scenario which can be covered by non-default config.
Oh why did you have to quote PEP here.. I'd agree with the argument but I hate Python with all my heart :) |
In all seriousness though, my main argument is: assigning E.g.a system with two DMs on one TAP:
You can see that requiring the user to specify |
Fair point, I agree! I also am in agreement that OpenOCD should auto-detect the base addresses of all DMs and the number of harts on each DM.
I would like there to not be two ways of writing the configuration (default vs. non-default, or we could call them automatic vs. explicit). In my opinion, the only advantage of the "automatic" configuration is shorter configuration - less characters to type. Other than that, I am afraid that I can only see disadvantages:
For those reasons, I'd prefer to not have the automatic configuration. To summarize, my preference would be:
|
Currently
-coreid
is used in RISC-V targets ashartid
.riscv-openocd/src/target/riscv/riscv-013.c
Line 1909 in a4020f1
This is misleading.
(
hartid
name is probably not the best. Here it's used just as an example.)By defaultSee Drop the use ofhartid
can be assigned based on target index-coreid
in RISC-V targets #1147 (comment)-hartid
configure option can be introduced.-coreid
on a RISC-V target should have the same effect as-hartid
and a deprecation message should be shown.The text was updated successfully, but these errors were encountered: