Skip to content

Mcause::from_bits doesn't allow interrupt to be set. #333

@jsgf

Description

@jsgf

Mcause::from_bits is documented as only setting BITMASK bits, but this is set to 0xffff_ffff. This excludes the interrupt bit on rv64, at bit 63. It should include at least this bit, but probably all 64 bits, since the riscv privileged spec says the Exception Code field is MXLEN-1 (with Interrupt at MXLEN-1)

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