Lukas' Notes

mepc (RISC-V)

May 01, 20261 min read

risc-v

Definition

mepc (RISC-V)

mepc is a control and status register in machine mode that stores the program counter of the instruction that caused the last trap.


Graph View

Backlinks

  • Control and Status Register (RISC-V)
  • Exception (RISC-V)
  • mret (RISC-V)

Created with Quartz v4.4.0 © 2026

  • GitHub