Skip to content

Illegal CSRs are not handled properly #7

Description

@acw1251

Reads and writes to illegal CSRs should raise an Illegal Instruction exception. Since the commit ca2b76e, reads to illegal (or unimplemented) CSRs return 0, and writes do nothing. Before that commit, accesses to illegal CSRs caused a fromJust runtime error in Haskell.

I added the behavior in ca2b76e to get riscv-tests to work for now. If we fix this issue, we will break riscv-tests support until we implement all the CSRs used in those tests (e.g. satp, mideleg, medeleg, etc.).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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