Nios® V Processor Reference Manual

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

3.3.6.1.1. Machine Status Register (mstatus)

The fourth bit field of the status register (mstatus[3]) holds the global interrupt enable bit, MIE. This bit is commonly used to guarantee atomicity regarding interrupt handlers at the current privilege mode.

When a hart is executing, all interrupts are globally,

  • Enabled when MIE=1, and
  • Disabled when MIE=0.

An MRET instruction is used to return from a trap in M-mode.