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

target/riscv: added translation drivers #1152

Merged
merged 1 commit into from
Oct 24, 2024

Conversation

fk-sc
Copy link
Contributor

@fk-sc fk-sc commented Oct 16, 2024

Existing flags: 'enable_virtual' and 'enable_virt2phys' were replaced with explicit translation drivers. Motivation:

(1) Having 'enable_virtual' and 'enable_virt2phys' flags set simultaneously may cause double address translation which is unacceptable

(2) Flags were global for all targets which is wrong too

@aap-sc
Copy link
Collaborator

aap-sc commented Oct 16, 2024

@MarekVCodasip , @JanMatCodasip could you take a look, please?

en-sc
en-sc previously approved these changes Oct 16, 2024
Copy link
Collaborator

@en-sc en-sc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (reviewed internally).

Copy link
Collaborator

@JanMatCodasip JanMatCodasip left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change looks very good to me and makes the TCL interface for virt2phys configuration much clearer than it is now.

I have only minor comments, mostly just suggestions for renaming or reword in documentation. Please if you can check them out.

src/target/riscv/riscv.c Outdated Show resolved Hide resolved
src/target/riscv/riscv.c Outdated Show resolved Hide resolved
doc/openocd.texi Outdated Show resolved Hide resolved
doc/openocd.texi Outdated Show resolved Hide resolved
doc/openocd.texi Outdated Show resolved Hide resolved
src/target/riscv/riscv.h Outdated Show resolved Hide resolved
src/target/riscv/startup.tcl Show resolved Hide resolved
src/target/riscv/riscv.c Outdated Show resolved Hide resolved
src/target/riscv/riscv-013.c Outdated Show resolved Hide resolved
src/target/riscv/riscv-013.c Show resolved Hide resolved
@fk-sc
Copy link
Contributor Author

fk-sc commented Oct 22, 2024

@JanMatCodasip thank you for the review. All threads were addressed

JanMatCodasip
JanMatCodasip previously approved these changes Oct 23, 2024
Copy link
Collaborator

@JanMatCodasip JanMatCodasip left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you.

src/target/riscv/riscv.c Outdated Show resolved Hide resolved
Existing flags: 'enable_virtual' and 'enable_virt2phys' were
replaced with explicit translation drivers. Motivation:

(1) Having 'enable_virtual' and 'enable_virt2phys' flags set simultaneously
may cause double address translation which is unacceptable

(2) Flags were global for all targets which is wrong too

Signed-off-by: Farid Khaydari <f.khaydari@syntacore.com>
@en-sc en-sc merged commit 7b4ad6f into riscv-collab:riscv Oct 24, 2024
4 checks passed
@fk-sc fk-sc deleted the translation-drivers branch October 24, 2024 14:48
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

Successfully merging this pull request may close these issues.

5 participants