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 | 0 | 0 | 0 | 0 | 0 |
1011111100100000
if ConditionPassed() then {
execute_aarch32_instrs_WFE_Op_A_txt()
};
()
if IsEventRegisterSet() then {
ClearEventRegister()
} else {
if PSTATE.EL == EL0 then {
AArch32_CheckForWFxTrap(EL1, WFxType_WFE)
};
if ((PSTATE.EL == EL0 | PSTATE.EL == EL1) & EL2Enabled()) & not_bool(IsInHost()) then {
AArch32_CheckForWFxTrap(EL2, WFxType_WFE)
};
if HaveEL(EL3) & PSTATE.M != M32_Monitor then {
AArch32_CheckForWFxTrap(EL3, WFxType_WFE)
};
let 'localtimeout = (1 << 64);
WaitForEvent(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.