The instruction set a block runs in is the block's (the dispatcher picks an A32 or a Thumb block by CPSR.T): the back end answers it when it recompiles, and an instruction that selects the other one (BLX) has it from then on, so its branch aligns its target as the new set does (SetInstrSet, the back end's; PSTATE.T as sail-arm's SelectInstrSet)
val CurrentInstrSet : unit -> InstrSet
Made from ScarletNX's Sail at 166ad3910f80. sail-arm's definitions are Arm's ASL in Sail (BSD 3-Clause Clear, license); ScarletNX's fixups are GPL-3.0-or-later.