Skip to content
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

proc riscv is not sufficient to deprecate riscv commands #1213

Open
en-sc opened this issue Jan 24, 2025 · 0 comments
Open

proc riscv is not sufficient to deprecate riscv commands #1213

en-sc opened this issue Jan 24, 2025 · 0 comments

Comments

@en-sc
Copy link
Collaborator

en-sc commented Jan 24, 2025

src/target/riscv/startup.tcl is intended to rewrite deprecated RISC-V-specific commands in TCL.
Such commands include a space in the name (e.g. riscv set_enable_virtual ...). By default TCL will interpret riscv set_enable_virtual ...) as a call to riscv with a first argument set_enable_virtual. To work around this proc riscv is introduced. See https://sourceforge.net/p/openocd/tickets/434/.

proc riscv {cmd args} {
tailcall "riscv $cmd" {*}$args
}

However, this is still not enough to cover the case <target_name> riscv set_enable_virtual ....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant