Skip to content

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

@romancardenas

Description

@romancardenas

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions