is an optional condition code.
In a processor that implements the Virtualization Extensions,you can use
ERET to perform a returnfrom an exception taken to Hyp mode.
When executed in Hyp mode,
ERET loadsthe PC from ELR_hyp and loads the CPSR from SPSR_hyp. When executedin any other mode, apart from User or System, it behaves as:
MOVS PC, LRin the A32 instruction set.
SUBS PC, LR, #0in the T32 instruction set.
You must not use
ERET in User or System mode. The assembler cannot warn you about this because it has no information about what the processor mode is likely to be at execution time.
ERET is the preferred synonym for
SUBS PC, LR, #0 in the T32 instruction set.
This 32-bit instruction is available in A32 and T32.
There is no 16-bit version of this instruction in T32.