MIPS R4000 Microprocessor User's Manual 139
CPU Exception Processing
Reserved Instruction Exception
Cause
The Reserved Instruction exception occurs when one of the following
conditions occurs:
• an attempt is made to execute an instruction with an undefined
major opcode (bits 31:26)
• an attempt is made to execute a SPECIAL instruction with an
undefined minor opcode (bits 5:0)
• an attempt is made to execute a REGIMM instruction with an
undefined minor opcode (bits 20:16)
• an attempt is made to execute 64-bit operations in 32-bit mode
when in User or Supervisor modes
64-bit operations are always valid in Kernel mode regardless of the value
of the KX bit in the Status register.
This exception is not maskable.
Reserved Instruction exception processing is shown in Figure 5-17.
Processing
The common exception vector is used for this exception, and the RI code
in the Cause register is set.
The EPC register contains the address of the reserved instruction unless it
is in a branch delay slot, in which case the EPC register contains the
address of the preceding branch instruction.
Servicing
No instructions in the MIPS ISA are currently interpreted. The process
executing at the time of this exception is handed a UNIX SIGILL/
ILL_RESOP_FAULT (illegal instruction/reserved operand fault) signal.
This error is usually fatal.