Part 2: AArch64 programmer’s model
Prerequisites: 1.1 Versions, FEAT_ names and discovery (ID registers and the “permitted from / mandatory from” vocabulary). If you already know: AAPCS64 and A64 assembly from TF-A or kernel work, skim 2.2 and the first half of 2.3; do not skip 2.4–2.6, which carry the v8.8+ state that later parts assume. Why this matters for bring-up/validation: almost every “the core hangs, takes an UNDEF or traps to EL3 on a new feature” failure traces back to the execution-state, PSTATE, system-register encoding or trap-control facts in this part.
This part fixes the vocabulary the rest of the book uses for “where code runs” and “what state it runs with”. 2.1 separates three independent axes that are often blurred: the Exception level, the Security state (including RME’s Realm and Root), and the execution state (AArch64 or AArch32), and states exactly when each can change. 2.2 and 2.3 cover the register file, AAPCS64, and enough of the A64 encoding space that you can read a firmware disassembly and see why new features (BTI, PAC, MOPS, 128-bit system registers) are encoded where they are.
The second half is about control state. 2.4 lists every PSTATE field up to v9.6 together with the one access path each permits, 2.5 explains the system-register encoding space that MRS, MSR, SYS and the new MRRS/MSRR all index, and 2.6 gives a one-page map of which register at which EL traps or enables which class of functionality. It ends with the rule that drives most of Part 17: a new feature is disabled or trapped until a higher EL turns it on.