Branches, exception generating and system instructions
fixed bit field field the encoding fixes should be
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| 1 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | CRm | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | |||
| opc | |||||||||||||||||||||||||||||||
11010101000000110011xxxx10111111
domain : MBReqDomain = undefined;
types : MBReqTypes = undefined;
match CRm[3 .. 2] {
0b00 => {
domain = MBReqDomain_OuterShareable
},
0b01 => {
domain = MBReqDomain_Nonshareable
},
0b10 => {
domain = MBReqDomain_InnerShareable
},
0b11 => {
domain = MBReqDomain_FullSystem
}
};
match CRm[1 .. 0] {
0b00 => {
types = MBReqTypes_All;
domain = MBReqDomain_FullSystem
},
0b01 => {
types = MBReqTypes_Reads
},
0b10 => {
types = MBReqTypes_Writes
},
0b11 => {
types = MBReqTypes_All
}
};
let types = types;
execute_aarch64_instrs_system_barriers_dmb(domain, types)
DataMemoryBarrier(domain, types)
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.