Nios® V Processor Reference Manual

ID 683632
Date 1/27/2025
Public
Document Table of Contents

3.3.6.1.4. Machine Exception Program Counter Register (mepc)

The mepc register is a 32-bits wide read/write register. When a trap is taken into M-mode, mepc holds the virtual address of the instruction that was interrupted or encountered the exception. An MRET instruction jumps to the address stored in mepc.