| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
open Arm64_const |
| 5 |
|
| 6 |
|
| 7 |
type arm64_op_shift = { |
| 8 |
shift_type: int; |
| 9 |
shift_value: int; |
| 10 |
} |
| 11 |
|
| 12 |
type arm64_op_mem = { |
| 13 |
base: int; |
| 14 |
index: int; |
| 15 |
disp: int |
| 16 |
} |
| 17 |
|
| 18 |
type arm64_op_value = |
| 19 |
| ARM64_OP_INVALID of int |
| 20 |
| ARM64_OP_REG of int |
| 21 |
| ARM64_OP_CIMM of int |
| 22 |
| ARM64_OP_IMM of int |
| 23 |
| ARM64_OP_FP of float |
| 24 |
| ARM64_OP_MEM of arm64_op_mem |
| 25 |
| ARM64_OP_REG_MRS of int |
| 26 |
| ARM64_OP_REG_MSR of int |
| 27 |
| ARM64_OP_PSTATE of int |
| 28 |
| ARM64_OP_SYS of int |
| 29 |
| ARM64_OP_PREFETCH of int |
| 30 |
| ARM64_OP_BARRIER of int |
| 31 |
|
| 32 |
type arm64_op = { |
| 33 |
vector_index: int; |
| 34 |
vas: int; |
| 35 |
shift: arm64_op_shift; |
| 36 |
ext: int; |
| 37 |
value: arm64_op_value; |
| 38 |
} |
| 39 |
|
| 40 |
type cs_arm64 = { |
| 41 |
cc: int; |
| 42 |
update_flags: bool; |
| 43 |
writeback: bool; |
| 44 |
operands: arm64_op array; |
| 45 |
} |