fixed bit field field the encoding fixes should be
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 |
1011111100110000
if ConditionPassed() then {
execute_aarch32_instrs_WFI_Op_A_txt()
};
()
if not_bool(InterruptPending()) then {
if PSTATE.EL == EL0 then {
AArch32_CheckForWFxTrap(EL1, WFxType_WFI)
};
if ((PSTATE.EL == EL0 | PSTATE.EL == EL1) & EL2Enabled()) & not_bool(IsInHost()) then {
AArch32_CheckForWFxTrap(EL2, WFxType_WFI)
};
if HaveEL(EL3) & PSTATE.M != M32_Monitor then {
AArch32_CheckForWFxTrap(EL3, WFxType_WFI)
};
let 'localtimeout = (1 << 64);
WaitForInterrupt(localtimeout)
};
()
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.