is an optional condition code.
In a processor that implements the Virtualization Extensions,
you can use
ERET to perform a return
from an exception taken to Hyp mode.
When executed in Hyp mode,
the PC from ELR_hyp and loads the CPSR from SPSR_hyp. When executed
in any other mode, apart from User or System, it behaves as:
MOVS PC, LRin the ARM instruction set.
SUBS PC, LR, #0in the Thumb instruction set.
You must not use
ERET in ThumbEE
state or in User or System mode. The assembler cannot detect the
ERET in User or System mode, but
it can detect and diagnose it in ThumbEE state.
ERET is the preferred synonym for
PC, LR, #0 in the Thumb instruction set.
This ARM instruction is available in ARMv7 architectures that include the Virtualization Extensions.
This 32-bit Thumb instruction is available in ARMv7 architectures that include the Virtualization Extensions.
There is no 16-bit version of this instruction in Thumb.