|
13 | 13 | #include <asm/insn-def.h>
|
14 | 14 |
|
15 | 15 | #ifndef __ASSEMBLY__
|
16 |
| -/* |
17 |
| - * ARM Architecture Reference Manual for ARMv8 Profile-A, Issue A.a |
18 |
| - * Section C3.1 "A64 instruction index by encoding": |
19 |
| - * AArch64 main encoding table |
20 |
| - * Bit position |
21 |
| - * 28 27 26 25 Encoding Group |
22 |
| - * 0 0 - - Unallocated |
23 |
| - * 1 0 0 - Data processing, immediate |
24 |
| - * 1 0 1 - Branch, exception generation and system instructions |
25 |
| - * - 1 - 0 Loads and stores |
26 |
| - * - 1 0 1 Data processing - register |
27 |
| - * 0 1 1 1 Data processing - SIMD and floating point |
28 |
| - * 1 1 1 1 Data processing - SIMD and floating point |
29 |
| - * "-" means "don't care" |
30 |
| - */ |
31 |
| -enum aarch64_insn_encoding_class { |
32 |
| - AARCH64_INSN_CLS_UNKNOWN, /* UNALLOCATED */ |
33 |
| - AARCH64_INSN_CLS_SVE, /* SVE instructions */ |
34 |
| - AARCH64_INSN_CLS_DP_IMM, /* Data processing - immediate */ |
35 |
| - AARCH64_INSN_CLS_DP_REG, /* Data processing - register */ |
36 |
| - AARCH64_INSN_CLS_DP_FPSIMD, /* Data processing - SIMD and FP */ |
37 |
| - AARCH64_INSN_CLS_LDST, /* Loads and stores */ |
38 |
| - AARCH64_INSN_CLS_BR_SYS, /* Branch, exception generation and |
39 |
| - * system instructions */ |
40 |
| -}; |
41 | 16 |
|
42 | 17 | enum aarch64_insn_hint_cr_op {
|
43 | 18 | AARCH64_INSN_HINT_NOP = 0x0 << 5,
|
@@ -326,6 +301,23 @@ static __always_inline u32 aarch64_insn_get_##abbr##_value(void) \
|
326 | 301 | return (val); \
|
327 | 302 | }
|
328 | 303 |
|
| 304 | +/* |
| 305 | + * ARM Architecture Reference Manual for ARMv8 Profile-A, Issue A.a |
| 306 | + * Section C3.1 "A64 instruction index by encoding": |
| 307 | + * AArch64 main encoding table |
| 308 | + * Bit position |
| 309 | + * 28 27 26 25 Encoding Group |
| 310 | + * 0 0 - - Unallocated |
| 311 | + * 1 0 0 - Data processing, immediate |
| 312 | + * 1 0 1 - Branch, exception generation and system instructions |
| 313 | + * - 1 - 0 Loads and stores |
| 314 | + * - 1 0 1 Data processing - register |
| 315 | + * 0 1 1 1 Data processing - SIMD and floating point |
| 316 | + * 1 1 1 1 Data processing - SIMD and floating point |
| 317 | + * "-" means "don't care" |
| 318 | + */ |
| 319 | +__AARCH64_INSN_FUNCS(class_branch_sys, 0x1c000000, 0x14000000) |
| 320 | + |
329 | 321 | __AARCH64_INSN_FUNCS(adr, 0x9F000000, 0x10000000)
|
330 | 322 | __AARCH64_INSN_FUNCS(adrp, 0x9F000000, 0x90000000)
|
331 | 323 | __AARCH64_INSN_FUNCS(prfm, 0x3FC00000, 0x39800000)
|
|
0 commit comments