SETPAN

T32: 16-bit instructions

fixed bit field field the encoding fixes should be

T1

1514131211109876543210
101101100001imm1000

101101100001x000

Decode Sail

if InITBlock() then {
    throw(Error_Unpredictable())
};
if not_bool(HavePANExt()) then {
    throw(Error_Undefined())
};
let value_name : bits(1) = imm1;
execute_aarch32_instrs_SETPAN_Op_A_txt(value_name)

Operation Sail

if PSTATE.EL != EL0 then {
    PSTATE.PAN = value_name
};
()

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.