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

RISC-V Settings file: add mtvec-align field #901

Closed
romancardenas opened this issue Jan 24, 2025 · 1 comment · Fixed by #909
Closed

RISC-V Settings file: add mtvec-align field #901

romancardenas opened this issue Jan 24, 2025 · 1 comment · Fixed by #909

Comments

@romancardenas
Copy link
Contributor

Motivated by rust-embedded/riscv#259

The RISC-V standard states that, in vector mode, the value in mtvec must be at least 4-byte aligned. However, targets may impose more strict alignment constraints (e.g., 256-byte aligned in Ibex).

The linked PR adds a RISCV_MTVEC_ALIGN environment variable that PACs should set in their build script to the desired value. I propose using svd2rust's config file to allow PACs to use this feature.

@burrbull
Copy link
Member

burrbull commented Feb 8, 2025

@romancardenas I plan new release soon. Do you want to do anything before?

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 a pull request may close this issue.

2 participants