Nios® V Processor Reference Manual

ID 683632
Date 1/27/2025
Public

A newer version of this document is available. Customers should click here to go to the newest version.

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.