PER ARM'S REQUEST, THIS SITE WILL BE DISCONTINUED ON 4 DECEMBER 2026. :(

Arm's lawyers have notified me to take down this site or face legal action.

To all of the fans of this site over the years (even the ones at Arm): thank you for your support! I'm glad I could provide a resource so many people found value in. I will look into solutions that can potentially keep bookmarks and links working.

— Jon

← Home

ERET

Exception return

This instruction restores PSTATE from the SPSR, and branches to the address held in the ELR.

The SPSR is checked for the current Exception level for an illegal return event. See Illegal exception returns from AArch64 state.

ERET is UNDEFINED at EL0.

313029282726252423222120191817161514131211109876543210
11010110100111110000001111100000
opcop2AMRnop4

Encoding

ERET

Decode

let pac : boolean = FALSE; let use_key_a : boolean = TRUE;

Operation

if PSTATE.EL == EL0 then Undefined(); end; AArch64_CheckForERetTrap(pac, use_key_a); let target : bits(64) = ELR_ELx(); AArch64_ExceptionReturn(target, SPSR_ELx());


Version 2026.09 — Copyright © 2010-2026 Arm Limited or its affiliates.

This site is provided as a community resource and is NOT affiliated with nor endorsed by Arm Limited.