Skip to content

Exception handling #2

@ddarriba

Description

@ddarriba

Use special registers for handling CPU exceptions.

  • BadVAddr: Memory address where exception occurred (e.g., unaligned or unallocated memory address)
  • Status: Interrupt mask, enable bits and status when exception occurred
  • Cause: Type of exception and pending interrupt bits (e.g., load from / store to an illegal address, arithmetic overflow)
  • EPC: Address of instruction that caused the exception (return address from the exception handling routine at 0x80000080)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions