18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Copyright (C) 2013 Huawei Ltd. 48c2ecf20Sopenharmony_ci * Author: Jiang Liu <liuj97@gmail.com> 58c2ecf20Sopenharmony_ci * 68c2ecf20Sopenharmony_ci * Copyright (C) 2014 Zi Shen Lim <zlim.lnx@gmail.com> 78c2ecf20Sopenharmony_ci */ 88c2ecf20Sopenharmony_ci#ifndef __ASM_INSN_H 98c2ecf20Sopenharmony_ci#define __ASM_INSN_H 108c2ecf20Sopenharmony_ci#include <linux/build_bug.h> 118c2ecf20Sopenharmony_ci#include <linux/types.h> 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ci#include <asm/alternative.h> 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ci#ifndef __ASSEMBLY__ 168c2ecf20Sopenharmony_ci/* 178c2ecf20Sopenharmony_ci * ARM Architecture Reference Manual for ARMv8 Profile-A, Issue A.a 188c2ecf20Sopenharmony_ci * Section C3.1 "A64 instruction index by encoding": 198c2ecf20Sopenharmony_ci * AArch64 main encoding table 208c2ecf20Sopenharmony_ci * Bit position 218c2ecf20Sopenharmony_ci * 28 27 26 25 Encoding Group 228c2ecf20Sopenharmony_ci * 0 0 - - Unallocated 238c2ecf20Sopenharmony_ci * 1 0 0 - Data processing, immediate 248c2ecf20Sopenharmony_ci * 1 0 1 - Branch, exception generation and system instructions 258c2ecf20Sopenharmony_ci * - 1 - 0 Loads and stores 268c2ecf20Sopenharmony_ci * - 1 0 1 Data processing - register 278c2ecf20Sopenharmony_ci * 0 1 1 1 Data processing - SIMD and floating point 288c2ecf20Sopenharmony_ci * 1 1 1 1 Data processing - SIMD and floating point 298c2ecf20Sopenharmony_ci * "-" means "don't care" 308c2ecf20Sopenharmony_ci */ 318c2ecf20Sopenharmony_cienum aarch64_insn_encoding_class { 328c2ecf20Sopenharmony_ci AARCH64_INSN_CLS_UNKNOWN, /* UNALLOCATED */ 338c2ecf20Sopenharmony_ci AARCH64_INSN_CLS_DP_IMM, /* Data processing - immediate */ 348c2ecf20Sopenharmony_ci AARCH64_INSN_CLS_DP_REG, /* Data processing - register */ 358c2ecf20Sopenharmony_ci AARCH64_INSN_CLS_DP_FPSIMD, /* Data processing - SIMD and FP */ 368c2ecf20Sopenharmony_ci AARCH64_INSN_CLS_LDST, /* Loads and stores */ 378c2ecf20Sopenharmony_ci AARCH64_INSN_CLS_BR_SYS, /* Branch, exception generation and 388c2ecf20Sopenharmony_ci * system instructions */ 398c2ecf20Sopenharmony_ci}; 408c2ecf20Sopenharmony_ci 418c2ecf20Sopenharmony_cienum aarch64_insn_hint_cr_op { 428c2ecf20Sopenharmony_ci AARCH64_INSN_HINT_NOP = 0x0 << 5, 438c2ecf20Sopenharmony_ci AARCH64_INSN_HINT_YIELD = 0x1 << 5, 448c2ecf20Sopenharmony_ci AARCH64_INSN_HINT_WFE = 0x2 << 5, 458c2ecf20Sopenharmony_ci AARCH64_INSN_HINT_WFI = 0x3 << 5, 468c2ecf20Sopenharmony_ci AARCH64_INSN_HINT_SEV = 0x4 << 5, 478c2ecf20Sopenharmony_ci AARCH64_INSN_HINT_SEVL = 0x5 << 5, 488c2ecf20Sopenharmony_ci 498c2ecf20Sopenharmony_ci AARCH64_INSN_HINT_XPACLRI = 0x07 << 5, 508c2ecf20Sopenharmony_ci AARCH64_INSN_HINT_PACIA_1716 = 0x08 << 5, 518c2ecf20Sopenharmony_ci AARCH64_INSN_HINT_PACIB_1716 = 0x0A << 5, 528c2ecf20Sopenharmony_ci AARCH64_INSN_HINT_AUTIA_1716 = 0x0C << 5, 538c2ecf20Sopenharmony_ci AARCH64_INSN_HINT_AUTIB_1716 = 0x0E << 5, 548c2ecf20Sopenharmony_ci AARCH64_INSN_HINT_PACIAZ = 0x18 << 5, 558c2ecf20Sopenharmony_ci AARCH64_INSN_HINT_PACIASP = 0x19 << 5, 568c2ecf20Sopenharmony_ci AARCH64_INSN_HINT_PACIBZ = 0x1A << 5, 578c2ecf20Sopenharmony_ci AARCH64_INSN_HINT_PACIBSP = 0x1B << 5, 588c2ecf20Sopenharmony_ci AARCH64_INSN_HINT_AUTIAZ = 0x1C << 5, 598c2ecf20Sopenharmony_ci AARCH64_INSN_HINT_AUTIASP = 0x1D << 5, 608c2ecf20Sopenharmony_ci AARCH64_INSN_HINT_AUTIBZ = 0x1E << 5, 618c2ecf20Sopenharmony_ci AARCH64_INSN_HINT_AUTIBSP = 0x1F << 5, 628c2ecf20Sopenharmony_ci 638c2ecf20Sopenharmony_ci AARCH64_INSN_HINT_ESB = 0x10 << 5, 648c2ecf20Sopenharmony_ci AARCH64_INSN_HINT_PSB = 0x11 << 5, 658c2ecf20Sopenharmony_ci AARCH64_INSN_HINT_TSB = 0x12 << 5, 668c2ecf20Sopenharmony_ci AARCH64_INSN_HINT_CSDB = 0x14 << 5, 678c2ecf20Sopenharmony_ci AARCH64_INSN_HINT_CLEARBHB = 0x16 << 5, 688c2ecf20Sopenharmony_ci 698c2ecf20Sopenharmony_ci AARCH64_INSN_HINT_BTI = 0x20 << 5, 708c2ecf20Sopenharmony_ci AARCH64_INSN_HINT_BTIC = 0x22 << 5, 718c2ecf20Sopenharmony_ci AARCH64_INSN_HINT_BTIJ = 0x24 << 5, 728c2ecf20Sopenharmony_ci AARCH64_INSN_HINT_BTIJC = 0x26 << 5, 738c2ecf20Sopenharmony_ci}; 748c2ecf20Sopenharmony_ci 758c2ecf20Sopenharmony_cienum aarch64_insn_imm_type { 768c2ecf20Sopenharmony_ci AARCH64_INSN_IMM_ADR, 778c2ecf20Sopenharmony_ci AARCH64_INSN_IMM_26, 788c2ecf20Sopenharmony_ci AARCH64_INSN_IMM_19, 798c2ecf20Sopenharmony_ci AARCH64_INSN_IMM_16, 808c2ecf20Sopenharmony_ci AARCH64_INSN_IMM_14, 818c2ecf20Sopenharmony_ci AARCH64_INSN_IMM_12, 828c2ecf20Sopenharmony_ci AARCH64_INSN_IMM_9, 838c2ecf20Sopenharmony_ci AARCH64_INSN_IMM_7, 848c2ecf20Sopenharmony_ci AARCH64_INSN_IMM_6, 858c2ecf20Sopenharmony_ci AARCH64_INSN_IMM_S, 868c2ecf20Sopenharmony_ci AARCH64_INSN_IMM_R, 878c2ecf20Sopenharmony_ci AARCH64_INSN_IMM_N, 888c2ecf20Sopenharmony_ci AARCH64_INSN_IMM_MAX 898c2ecf20Sopenharmony_ci}; 908c2ecf20Sopenharmony_ci 918c2ecf20Sopenharmony_cienum aarch64_insn_register_type { 928c2ecf20Sopenharmony_ci AARCH64_INSN_REGTYPE_RT, 938c2ecf20Sopenharmony_ci AARCH64_INSN_REGTYPE_RN, 948c2ecf20Sopenharmony_ci AARCH64_INSN_REGTYPE_RT2, 958c2ecf20Sopenharmony_ci AARCH64_INSN_REGTYPE_RM, 968c2ecf20Sopenharmony_ci AARCH64_INSN_REGTYPE_RD, 978c2ecf20Sopenharmony_ci AARCH64_INSN_REGTYPE_RA, 988c2ecf20Sopenharmony_ci AARCH64_INSN_REGTYPE_RS, 998c2ecf20Sopenharmony_ci}; 1008c2ecf20Sopenharmony_ci 1018c2ecf20Sopenharmony_cienum aarch64_insn_register { 1028c2ecf20Sopenharmony_ci AARCH64_INSN_REG_0 = 0, 1038c2ecf20Sopenharmony_ci AARCH64_INSN_REG_1 = 1, 1048c2ecf20Sopenharmony_ci AARCH64_INSN_REG_2 = 2, 1058c2ecf20Sopenharmony_ci AARCH64_INSN_REG_3 = 3, 1068c2ecf20Sopenharmony_ci AARCH64_INSN_REG_4 = 4, 1078c2ecf20Sopenharmony_ci AARCH64_INSN_REG_5 = 5, 1088c2ecf20Sopenharmony_ci AARCH64_INSN_REG_6 = 6, 1098c2ecf20Sopenharmony_ci AARCH64_INSN_REG_7 = 7, 1108c2ecf20Sopenharmony_ci AARCH64_INSN_REG_8 = 8, 1118c2ecf20Sopenharmony_ci AARCH64_INSN_REG_9 = 9, 1128c2ecf20Sopenharmony_ci AARCH64_INSN_REG_10 = 10, 1138c2ecf20Sopenharmony_ci AARCH64_INSN_REG_11 = 11, 1148c2ecf20Sopenharmony_ci AARCH64_INSN_REG_12 = 12, 1158c2ecf20Sopenharmony_ci AARCH64_INSN_REG_13 = 13, 1168c2ecf20Sopenharmony_ci AARCH64_INSN_REG_14 = 14, 1178c2ecf20Sopenharmony_ci AARCH64_INSN_REG_15 = 15, 1188c2ecf20Sopenharmony_ci AARCH64_INSN_REG_16 = 16, 1198c2ecf20Sopenharmony_ci AARCH64_INSN_REG_17 = 17, 1208c2ecf20Sopenharmony_ci AARCH64_INSN_REG_18 = 18, 1218c2ecf20Sopenharmony_ci AARCH64_INSN_REG_19 = 19, 1228c2ecf20Sopenharmony_ci AARCH64_INSN_REG_20 = 20, 1238c2ecf20Sopenharmony_ci AARCH64_INSN_REG_21 = 21, 1248c2ecf20Sopenharmony_ci AARCH64_INSN_REG_22 = 22, 1258c2ecf20Sopenharmony_ci AARCH64_INSN_REG_23 = 23, 1268c2ecf20Sopenharmony_ci AARCH64_INSN_REG_24 = 24, 1278c2ecf20Sopenharmony_ci AARCH64_INSN_REG_25 = 25, 1288c2ecf20Sopenharmony_ci AARCH64_INSN_REG_26 = 26, 1298c2ecf20Sopenharmony_ci AARCH64_INSN_REG_27 = 27, 1308c2ecf20Sopenharmony_ci AARCH64_INSN_REG_28 = 28, 1318c2ecf20Sopenharmony_ci AARCH64_INSN_REG_29 = 29, 1328c2ecf20Sopenharmony_ci AARCH64_INSN_REG_FP = 29, /* Frame pointer */ 1338c2ecf20Sopenharmony_ci AARCH64_INSN_REG_30 = 30, 1348c2ecf20Sopenharmony_ci AARCH64_INSN_REG_LR = 30, /* Link register */ 1358c2ecf20Sopenharmony_ci AARCH64_INSN_REG_ZR = 31, /* Zero: as source register */ 1368c2ecf20Sopenharmony_ci AARCH64_INSN_REG_SP = 31 /* Stack pointer: as load/store base reg */ 1378c2ecf20Sopenharmony_ci}; 1388c2ecf20Sopenharmony_ci 1398c2ecf20Sopenharmony_cienum aarch64_insn_special_register { 1408c2ecf20Sopenharmony_ci AARCH64_INSN_SPCLREG_SPSR_EL1 = 0xC200, 1418c2ecf20Sopenharmony_ci AARCH64_INSN_SPCLREG_ELR_EL1 = 0xC201, 1428c2ecf20Sopenharmony_ci AARCH64_INSN_SPCLREG_SP_EL0 = 0xC208, 1438c2ecf20Sopenharmony_ci AARCH64_INSN_SPCLREG_SPSEL = 0xC210, 1448c2ecf20Sopenharmony_ci AARCH64_INSN_SPCLREG_CURRENTEL = 0xC212, 1458c2ecf20Sopenharmony_ci AARCH64_INSN_SPCLREG_DAIF = 0xDA11, 1468c2ecf20Sopenharmony_ci AARCH64_INSN_SPCLREG_NZCV = 0xDA10, 1478c2ecf20Sopenharmony_ci AARCH64_INSN_SPCLREG_FPCR = 0xDA20, 1488c2ecf20Sopenharmony_ci AARCH64_INSN_SPCLREG_DSPSR_EL0 = 0xDA28, 1498c2ecf20Sopenharmony_ci AARCH64_INSN_SPCLREG_DLR_EL0 = 0xDA29, 1508c2ecf20Sopenharmony_ci AARCH64_INSN_SPCLREG_SPSR_EL2 = 0xE200, 1518c2ecf20Sopenharmony_ci AARCH64_INSN_SPCLREG_ELR_EL2 = 0xE201, 1528c2ecf20Sopenharmony_ci AARCH64_INSN_SPCLREG_SP_EL1 = 0xE208, 1538c2ecf20Sopenharmony_ci AARCH64_INSN_SPCLREG_SPSR_INQ = 0xE218, 1548c2ecf20Sopenharmony_ci AARCH64_INSN_SPCLREG_SPSR_ABT = 0xE219, 1558c2ecf20Sopenharmony_ci AARCH64_INSN_SPCLREG_SPSR_UND = 0xE21A, 1568c2ecf20Sopenharmony_ci AARCH64_INSN_SPCLREG_SPSR_FIQ = 0xE21B, 1578c2ecf20Sopenharmony_ci AARCH64_INSN_SPCLREG_SPSR_EL3 = 0xF200, 1588c2ecf20Sopenharmony_ci AARCH64_INSN_SPCLREG_ELR_EL3 = 0xF201, 1598c2ecf20Sopenharmony_ci AARCH64_INSN_SPCLREG_SP_EL2 = 0xF210 1608c2ecf20Sopenharmony_ci}; 1618c2ecf20Sopenharmony_ci 1628c2ecf20Sopenharmony_cienum aarch64_insn_variant { 1638c2ecf20Sopenharmony_ci AARCH64_INSN_VARIANT_32BIT, 1648c2ecf20Sopenharmony_ci AARCH64_INSN_VARIANT_64BIT 1658c2ecf20Sopenharmony_ci}; 1668c2ecf20Sopenharmony_ci 1678c2ecf20Sopenharmony_cienum aarch64_insn_condition { 1688c2ecf20Sopenharmony_ci AARCH64_INSN_COND_EQ = 0x0, /* == */ 1698c2ecf20Sopenharmony_ci AARCH64_INSN_COND_NE = 0x1, /* != */ 1708c2ecf20Sopenharmony_ci AARCH64_INSN_COND_CS = 0x2, /* unsigned >= */ 1718c2ecf20Sopenharmony_ci AARCH64_INSN_COND_CC = 0x3, /* unsigned < */ 1728c2ecf20Sopenharmony_ci AARCH64_INSN_COND_MI = 0x4, /* < 0 */ 1738c2ecf20Sopenharmony_ci AARCH64_INSN_COND_PL = 0x5, /* >= 0 */ 1748c2ecf20Sopenharmony_ci AARCH64_INSN_COND_VS = 0x6, /* overflow */ 1758c2ecf20Sopenharmony_ci AARCH64_INSN_COND_VC = 0x7, /* no overflow */ 1768c2ecf20Sopenharmony_ci AARCH64_INSN_COND_HI = 0x8, /* unsigned > */ 1778c2ecf20Sopenharmony_ci AARCH64_INSN_COND_LS = 0x9, /* unsigned <= */ 1788c2ecf20Sopenharmony_ci AARCH64_INSN_COND_GE = 0xa, /* signed >= */ 1798c2ecf20Sopenharmony_ci AARCH64_INSN_COND_LT = 0xb, /* signed < */ 1808c2ecf20Sopenharmony_ci AARCH64_INSN_COND_GT = 0xc, /* signed > */ 1818c2ecf20Sopenharmony_ci AARCH64_INSN_COND_LE = 0xd, /* signed <= */ 1828c2ecf20Sopenharmony_ci AARCH64_INSN_COND_AL = 0xe, /* always */ 1838c2ecf20Sopenharmony_ci}; 1848c2ecf20Sopenharmony_ci 1858c2ecf20Sopenharmony_cienum aarch64_insn_branch_type { 1868c2ecf20Sopenharmony_ci AARCH64_INSN_BRANCH_NOLINK, 1878c2ecf20Sopenharmony_ci AARCH64_INSN_BRANCH_LINK, 1888c2ecf20Sopenharmony_ci AARCH64_INSN_BRANCH_RETURN, 1898c2ecf20Sopenharmony_ci AARCH64_INSN_BRANCH_COMP_ZERO, 1908c2ecf20Sopenharmony_ci AARCH64_INSN_BRANCH_COMP_NONZERO, 1918c2ecf20Sopenharmony_ci}; 1928c2ecf20Sopenharmony_ci 1938c2ecf20Sopenharmony_cienum aarch64_insn_size_type { 1948c2ecf20Sopenharmony_ci AARCH64_INSN_SIZE_8, 1958c2ecf20Sopenharmony_ci AARCH64_INSN_SIZE_16, 1968c2ecf20Sopenharmony_ci AARCH64_INSN_SIZE_32, 1978c2ecf20Sopenharmony_ci AARCH64_INSN_SIZE_64, 1988c2ecf20Sopenharmony_ci}; 1998c2ecf20Sopenharmony_ci 2008c2ecf20Sopenharmony_cienum aarch64_insn_ldst_type { 2018c2ecf20Sopenharmony_ci AARCH64_INSN_LDST_LOAD_REG_OFFSET, 2028c2ecf20Sopenharmony_ci AARCH64_INSN_LDST_STORE_REG_OFFSET, 2038c2ecf20Sopenharmony_ci AARCH64_INSN_LDST_LOAD_PAIR_PRE_INDEX, 2048c2ecf20Sopenharmony_ci AARCH64_INSN_LDST_STORE_PAIR_PRE_INDEX, 2058c2ecf20Sopenharmony_ci AARCH64_INSN_LDST_LOAD_PAIR_POST_INDEX, 2068c2ecf20Sopenharmony_ci AARCH64_INSN_LDST_STORE_PAIR_POST_INDEX, 2078c2ecf20Sopenharmony_ci AARCH64_INSN_LDST_LOAD_EX, 2088c2ecf20Sopenharmony_ci AARCH64_INSN_LDST_STORE_EX, 2098c2ecf20Sopenharmony_ci}; 2108c2ecf20Sopenharmony_ci 2118c2ecf20Sopenharmony_cienum aarch64_insn_adsb_type { 2128c2ecf20Sopenharmony_ci AARCH64_INSN_ADSB_ADD, 2138c2ecf20Sopenharmony_ci AARCH64_INSN_ADSB_SUB, 2148c2ecf20Sopenharmony_ci AARCH64_INSN_ADSB_ADD_SETFLAGS, 2158c2ecf20Sopenharmony_ci AARCH64_INSN_ADSB_SUB_SETFLAGS 2168c2ecf20Sopenharmony_ci}; 2178c2ecf20Sopenharmony_ci 2188c2ecf20Sopenharmony_cienum aarch64_insn_movewide_type { 2198c2ecf20Sopenharmony_ci AARCH64_INSN_MOVEWIDE_ZERO, 2208c2ecf20Sopenharmony_ci AARCH64_INSN_MOVEWIDE_KEEP, 2218c2ecf20Sopenharmony_ci AARCH64_INSN_MOVEWIDE_INVERSE 2228c2ecf20Sopenharmony_ci}; 2238c2ecf20Sopenharmony_ci 2248c2ecf20Sopenharmony_cienum aarch64_insn_bitfield_type { 2258c2ecf20Sopenharmony_ci AARCH64_INSN_BITFIELD_MOVE, 2268c2ecf20Sopenharmony_ci AARCH64_INSN_BITFIELD_MOVE_UNSIGNED, 2278c2ecf20Sopenharmony_ci AARCH64_INSN_BITFIELD_MOVE_SIGNED 2288c2ecf20Sopenharmony_ci}; 2298c2ecf20Sopenharmony_ci 2308c2ecf20Sopenharmony_cienum aarch64_insn_data1_type { 2318c2ecf20Sopenharmony_ci AARCH64_INSN_DATA1_REVERSE_16, 2328c2ecf20Sopenharmony_ci AARCH64_INSN_DATA1_REVERSE_32, 2338c2ecf20Sopenharmony_ci AARCH64_INSN_DATA1_REVERSE_64, 2348c2ecf20Sopenharmony_ci}; 2358c2ecf20Sopenharmony_ci 2368c2ecf20Sopenharmony_cienum aarch64_insn_data2_type { 2378c2ecf20Sopenharmony_ci AARCH64_INSN_DATA2_UDIV, 2388c2ecf20Sopenharmony_ci AARCH64_INSN_DATA2_SDIV, 2398c2ecf20Sopenharmony_ci AARCH64_INSN_DATA2_LSLV, 2408c2ecf20Sopenharmony_ci AARCH64_INSN_DATA2_LSRV, 2418c2ecf20Sopenharmony_ci AARCH64_INSN_DATA2_ASRV, 2428c2ecf20Sopenharmony_ci AARCH64_INSN_DATA2_RORV, 2438c2ecf20Sopenharmony_ci}; 2448c2ecf20Sopenharmony_ci 2458c2ecf20Sopenharmony_cienum aarch64_insn_data3_type { 2468c2ecf20Sopenharmony_ci AARCH64_INSN_DATA3_MADD, 2478c2ecf20Sopenharmony_ci AARCH64_INSN_DATA3_MSUB, 2488c2ecf20Sopenharmony_ci}; 2498c2ecf20Sopenharmony_ci 2508c2ecf20Sopenharmony_cienum aarch64_insn_logic_type { 2518c2ecf20Sopenharmony_ci AARCH64_INSN_LOGIC_AND, 2528c2ecf20Sopenharmony_ci AARCH64_INSN_LOGIC_BIC, 2538c2ecf20Sopenharmony_ci AARCH64_INSN_LOGIC_ORR, 2548c2ecf20Sopenharmony_ci AARCH64_INSN_LOGIC_ORN, 2558c2ecf20Sopenharmony_ci AARCH64_INSN_LOGIC_EOR, 2568c2ecf20Sopenharmony_ci AARCH64_INSN_LOGIC_EON, 2578c2ecf20Sopenharmony_ci AARCH64_INSN_LOGIC_AND_SETFLAGS, 2588c2ecf20Sopenharmony_ci AARCH64_INSN_LOGIC_BIC_SETFLAGS 2598c2ecf20Sopenharmony_ci}; 2608c2ecf20Sopenharmony_ci 2618c2ecf20Sopenharmony_cienum aarch64_insn_prfm_type { 2628c2ecf20Sopenharmony_ci AARCH64_INSN_PRFM_TYPE_PLD, 2638c2ecf20Sopenharmony_ci AARCH64_INSN_PRFM_TYPE_PLI, 2648c2ecf20Sopenharmony_ci AARCH64_INSN_PRFM_TYPE_PST, 2658c2ecf20Sopenharmony_ci}; 2668c2ecf20Sopenharmony_ci 2678c2ecf20Sopenharmony_cienum aarch64_insn_prfm_target { 2688c2ecf20Sopenharmony_ci AARCH64_INSN_PRFM_TARGET_L1, 2698c2ecf20Sopenharmony_ci AARCH64_INSN_PRFM_TARGET_L2, 2708c2ecf20Sopenharmony_ci AARCH64_INSN_PRFM_TARGET_L3, 2718c2ecf20Sopenharmony_ci}; 2728c2ecf20Sopenharmony_ci 2738c2ecf20Sopenharmony_cienum aarch64_insn_prfm_policy { 2748c2ecf20Sopenharmony_ci AARCH64_INSN_PRFM_POLICY_KEEP, 2758c2ecf20Sopenharmony_ci AARCH64_INSN_PRFM_POLICY_STRM, 2768c2ecf20Sopenharmony_ci}; 2778c2ecf20Sopenharmony_ci 2788c2ecf20Sopenharmony_cienum aarch64_insn_adr_type { 2798c2ecf20Sopenharmony_ci AARCH64_INSN_ADR_TYPE_ADRP, 2808c2ecf20Sopenharmony_ci AARCH64_INSN_ADR_TYPE_ADR, 2818c2ecf20Sopenharmony_ci}; 2828c2ecf20Sopenharmony_ci 2838c2ecf20Sopenharmony_ci#define __AARCH64_INSN_FUNCS(abbr, mask, val) \ 2848c2ecf20Sopenharmony_cistatic __always_inline bool aarch64_insn_is_##abbr(u32 code) \ 2858c2ecf20Sopenharmony_ci{ \ 2868c2ecf20Sopenharmony_ci BUILD_BUG_ON(~(mask) & (val)); \ 2878c2ecf20Sopenharmony_ci return (code & (mask)) == (val); \ 2888c2ecf20Sopenharmony_ci} \ 2898c2ecf20Sopenharmony_cistatic __always_inline u32 aarch64_insn_get_##abbr##_value(void) \ 2908c2ecf20Sopenharmony_ci{ \ 2918c2ecf20Sopenharmony_ci return (val); \ 2928c2ecf20Sopenharmony_ci} 2938c2ecf20Sopenharmony_ci 2948c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(adr, 0x9F000000, 0x10000000) 2958c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(adrp, 0x9F000000, 0x90000000) 2968c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(prfm, 0x3FC00000, 0x39800000) 2978c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(prfm_lit, 0xFF000000, 0xD8000000) 2988c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(str_reg, 0x3FE0EC00, 0x38206800) 2998c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(ldadd, 0x3F20FC00, 0x38200000) 3008c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(ldr_reg, 0x3FE0EC00, 0x38606800) 3018c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(ldr_lit, 0xBF000000, 0x18000000) 3028c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(ldrsw_lit, 0xFF000000, 0x98000000) 3038c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(exclusive, 0x3F800000, 0x08000000) 3048c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(load_ex, 0x3F400000, 0x08400000) 3058c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(store_ex, 0x3F400000, 0x08000000) 3068c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(stp_post, 0x7FC00000, 0x28800000) 3078c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(ldp_post, 0x7FC00000, 0x28C00000) 3088c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(stp_pre, 0x7FC00000, 0x29800000) 3098c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(ldp_pre, 0x7FC00000, 0x29C00000) 3108c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(add_imm, 0x7F000000, 0x11000000) 3118c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(adds_imm, 0x7F000000, 0x31000000) 3128c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(sub_imm, 0x7F000000, 0x51000000) 3138c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(subs_imm, 0x7F000000, 0x71000000) 3148c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(movn, 0x7F800000, 0x12800000) 3158c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(sbfm, 0x7F800000, 0x13000000) 3168c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(bfm, 0x7F800000, 0x33000000) 3178c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(movz, 0x7F800000, 0x52800000) 3188c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(ubfm, 0x7F800000, 0x53000000) 3198c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(movk, 0x7F800000, 0x72800000) 3208c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(add, 0x7F200000, 0x0B000000) 3218c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(adds, 0x7F200000, 0x2B000000) 3228c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(sub, 0x7F200000, 0x4B000000) 3238c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(subs, 0x7F200000, 0x6B000000) 3248c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(madd, 0x7FE08000, 0x1B000000) 3258c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(msub, 0x7FE08000, 0x1B008000) 3268c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(udiv, 0x7FE0FC00, 0x1AC00800) 3278c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(sdiv, 0x7FE0FC00, 0x1AC00C00) 3288c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(lslv, 0x7FE0FC00, 0x1AC02000) 3298c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(lsrv, 0x7FE0FC00, 0x1AC02400) 3308c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(asrv, 0x7FE0FC00, 0x1AC02800) 3318c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(rorv, 0x7FE0FC00, 0x1AC02C00) 3328c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(rev16, 0x7FFFFC00, 0x5AC00400) 3338c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(rev32, 0x7FFFFC00, 0x5AC00800) 3348c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(rev64, 0x7FFFFC00, 0x5AC00C00) 3358c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(and, 0x7F200000, 0x0A000000) 3368c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(bic, 0x7F200000, 0x0A200000) 3378c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(orr, 0x7F200000, 0x2A000000) 3388c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(orn, 0x7F200000, 0x2A200000) 3398c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(eor, 0x7F200000, 0x4A000000) 3408c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(eon, 0x7F200000, 0x4A200000) 3418c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(ands, 0x7F200000, 0x6A000000) 3428c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(bics, 0x7F200000, 0x6A200000) 3438c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(and_imm, 0x7F800000, 0x12000000) 3448c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(orr_imm, 0x7F800000, 0x32000000) 3458c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(eor_imm, 0x7F800000, 0x52000000) 3468c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(ands_imm, 0x7F800000, 0x72000000) 3478c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(extr, 0x7FA00000, 0x13800000) 3488c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(b, 0xFC000000, 0x14000000) 3498c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(bl, 0xFC000000, 0x94000000) 3508c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(cbz, 0x7F000000, 0x34000000) 3518c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(cbnz, 0x7F000000, 0x35000000) 3528c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(tbz, 0x7F000000, 0x36000000) 3538c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(tbnz, 0x7F000000, 0x37000000) 3548c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(bcond, 0xFF000010, 0x54000000) 3558c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(svc, 0xFFE0001F, 0xD4000001) 3568c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(hvc, 0xFFE0001F, 0xD4000002) 3578c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(smc, 0xFFE0001F, 0xD4000003) 3588c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(brk, 0xFFE0001F, 0xD4200000) 3598c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(exception, 0xFF000000, 0xD4000000) 3608c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(hint, 0xFFFFF01F, 0xD503201F) 3618c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(br, 0xFFFFFC1F, 0xD61F0000) 3628c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(br_auth, 0xFEFFF800, 0xD61F0800) 3638c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(blr, 0xFFFFFC1F, 0xD63F0000) 3648c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(blr_auth, 0xFEFFF800, 0xD63F0800) 3658c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(ret, 0xFFFFFC1F, 0xD65F0000) 3668c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(ret_auth, 0xFFFFFBFF, 0xD65F0BFF) 3678c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(eret, 0xFFFFFFFF, 0xD69F03E0) 3688c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(eret_auth, 0xFFFFFBFF, 0xD69F0BFF) 3698c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(mrs, 0xFFF00000, 0xD5300000) 3708c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(msr_imm, 0xFFF8F01F, 0xD500401F) 3718c2ecf20Sopenharmony_ci__AARCH64_INSN_FUNCS(msr_reg, 0xFFF00000, 0xD5100000) 3728c2ecf20Sopenharmony_ci 3738c2ecf20Sopenharmony_ci#undef __AARCH64_INSN_FUNCS 3748c2ecf20Sopenharmony_ci 3758c2ecf20Sopenharmony_cibool aarch64_insn_is_steppable_hint(u32 insn); 3768c2ecf20Sopenharmony_cibool aarch64_insn_is_branch_imm(u32 insn); 3778c2ecf20Sopenharmony_ci 3788c2ecf20Sopenharmony_cistatic inline bool aarch64_insn_is_adr_adrp(u32 insn) 3798c2ecf20Sopenharmony_ci{ 3808c2ecf20Sopenharmony_ci return aarch64_insn_is_adr(insn) || aarch64_insn_is_adrp(insn); 3818c2ecf20Sopenharmony_ci} 3828c2ecf20Sopenharmony_ci 3838c2ecf20Sopenharmony_ciint aarch64_insn_read(void *addr, u32 *insnp); 3848c2ecf20Sopenharmony_ciint aarch64_insn_write(void *addr, u32 insn); 3858c2ecf20Sopenharmony_cienum aarch64_insn_encoding_class aarch64_get_insn_class(u32 insn); 3868c2ecf20Sopenharmony_cibool aarch64_insn_uses_literal(u32 insn); 3878c2ecf20Sopenharmony_cibool aarch64_insn_is_branch(u32 insn); 3888c2ecf20Sopenharmony_ciu64 aarch64_insn_decode_immediate(enum aarch64_insn_imm_type type, u32 insn); 3898c2ecf20Sopenharmony_ciu32 aarch64_insn_encode_immediate(enum aarch64_insn_imm_type type, 3908c2ecf20Sopenharmony_ci u32 insn, u64 imm); 3918c2ecf20Sopenharmony_ciu32 aarch64_insn_decode_register(enum aarch64_insn_register_type type, 3928c2ecf20Sopenharmony_ci u32 insn); 3938c2ecf20Sopenharmony_ciu32 aarch64_insn_gen_branch_imm(unsigned long pc, unsigned long addr, 3948c2ecf20Sopenharmony_ci enum aarch64_insn_branch_type type); 3958c2ecf20Sopenharmony_ciu32 aarch64_insn_gen_comp_branch_imm(unsigned long pc, unsigned long addr, 3968c2ecf20Sopenharmony_ci enum aarch64_insn_register reg, 3978c2ecf20Sopenharmony_ci enum aarch64_insn_variant variant, 3988c2ecf20Sopenharmony_ci enum aarch64_insn_branch_type type); 3998c2ecf20Sopenharmony_ciu32 aarch64_insn_gen_cond_branch_imm(unsigned long pc, unsigned long addr, 4008c2ecf20Sopenharmony_ci enum aarch64_insn_condition cond); 4018c2ecf20Sopenharmony_ciu32 aarch64_insn_gen_hint(enum aarch64_insn_hint_cr_op op); 4028c2ecf20Sopenharmony_ciu32 aarch64_insn_gen_nop(void); 4038c2ecf20Sopenharmony_ciu32 aarch64_insn_gen_branch_reg(enum aarch64_insn_register reg, 4048c2ecf20Sopenharmony_ci enum aarch64_insn_branch_type type); 4058c2ecf20Sopenharmony_ciu32 aarch64_insn_gen_load_store_reg(enum aarch64_insn_register reg, 4068c2ecf20Sopenharmony_ci enum aarch64_insn_register base, 4078c2ecf20Sopenharmony_ci enum aarch64_insn_register offset, 4088c2ecf20Sopenharmony_ci enum aarch64_insn_size_type size, 4098c2ecf20Sopenharmony_ci enum aarch64_insn_ldst_type type); 4108c2ecf20Sopenharmony_ciu32 aarch64_insn_gen_load_store_pair(enum aarch64_insn_register reg1, 4118c2ecf20Sopenharmony_ci enum aarch64_insn_register reg2, 4128c2ecf20Sopenharmony_ci enum aarch64_insn_register base, 4138c2ecf20Sopenharmony_ci int offset, 4148c2ecf20Sopenharmony_ci enum aarch64_insn_variant variant, 4158c2ecf20Sopenharmony_ci enum aarch64_insn_ldst_type type); 4168c2ecf20Sopenharmony_ciu32 aarch64_insn_gen_load_store_ex(enum aarch64_insn_register reg, 4178c2ecf20Sopenharmony_ci enum aarch64_insn_register base, 4188c2ecf20Sopenharmony_ci enum aarch64_insn_register state, 4198c2ecf20Sopenharmony_ci enum aarch64_insn_size_type size, 4208c2ecf20Sopenharmony_ci enum aarch64_insn_ldst_type type); 4218c2ecf20Sopenharmony_ciu32 aarch64_insn_gen_ldadd(enum aarch64_insn_register result, 4228c2ecf20Sopenharmony_ci enum aarch64_insn_register address, 4238c2ecf20Sopenharmony_ci enum aarch64_insn_register value, 4248c2ecf20Sopenharmony_ci enum aarch64_insn_size_type size); 4258c2ecf20Sopenharmony_ciu32 aarch64_insn_gen_stadd(enum aarch64_insn_register address, 4268c2ecf20Sopenharmony_ci enum aarch64_insn_register value, 4278c2ecf20Sopenharmony_ci enum aarch64_insn_size_type size); 4288c2ecf20Sopenharmony_ciu32 aarch64_insn_gen_add_sub_imm(enum aarch64_insn_register dst, 4298c2ecf20Sopenharmony_ci enum aarch64_insn_register src, 4308c2ecf20Sopenharmony_ci int imm, enum aarch64_insn_variant variant, 4318c2ecf20Sopenharmony_ci enum aarch64_insn_adsb_type type); 4328c2ecf20Sopenharmony_ciu32 aarch64_insn_gen_adr(unsigned long pc, unsigned long addr, 4338c2ecf20Sopenharmony_ci enum aarch64_insn_register reg, 4348c2ecf20Sopenharmony_ci enum aarch64_insn_adr_type type); 4358c2ecf20Sopenharmony_ciu32 aarch64_insn_gen_bitfield(enum aarch64_insn_register dst, 4368c2ecf20Sopenharmony_ci enum aarch64_insn_register src, 4378c2ecf20Sopenharmony_ci int immr, int imms, 4388c2ecf20Sopenharmony_ci enum aarch64_insn_variant variant, 4398c2ecf20Sopenharmony_ci enum aarch64_insn_bitfield_type type); 4408c2ecf20Sopenharmony_ciu32 aarch64_insn_gen_movewide(enum aarch64_insn_register dst, 4418c2ecf20Sopenharmony_ci int imm, int shift, 4428c2ecf20Sopenharmony_ci enum aarch64_insn_variant variant, 4438c2ecf20Sopenharmony_ci enum aarch64_insn_movewide_type type); 4448c2ecf20Sopenharmony_ciu32 aarch64_insn_gen_add_sub_shifted_reg(enum aarch64_insn_register dst, 4458c2ecf20Sopenharmony_ci enum aarch64_insn_register src, 4468c2ecf20Sopenharmony_ci enum aarch64_insn_register reg, 4478c2ecf20Sopenharmony_ci int shift, 4488c2ecf20Sopenharmony_ci enum aarch64_insn_variant variant, 4498c2ecf20Sopenharmony_ci enum aarch64_insn_adsb_type type); 4508c2ecf20Sopenharmony_ciu32 aarch64_insn_gen_data1(enum aarch64_insn_register dst, 4518c2ecf20Sopenharmony_ci enum aarch64_insn_register src, 4528c2ecf20Sopenharmony_ci enum aarch64_insn_variant variant, 4538c2ecf20Sopenharmony_ci enum aarch64_insn_data1_type type); 4548c2ecf20Sopenharmony_ciu32 aarch64_insn_gen_data2(enum aarch64_insn_register dst, 4558c2ecf20Sopenharmony_ci enum aarch64_insn_register src, 4568c2ecf20Sopenharmony_ci enum aarch64_insn_register reg, 4578c2ecf20Sopenharmony_ci enum aarch64_insn_variant variant, 4588c2ecf20Sopenharmony_ci enum aarch64_insn_data2_type type); 4598c2ecf20Sopenharmony_ciu32 aarch64_insn_gen_data3(enum aarch64_insn_register dst, 4608c2ecf20Sopenharmony_ci enum aarch64_insn_register src, 4618c2ecf20Sopenharmony_ci enum aarch64_insn_register reg1, 4628c2ecf20Sopenharmony_ci enum aarch64_insn_register reg2, 4638c2ecf20Sopenharmony_ci enum aarch64_insn_variant variant, 4648c2ecf20Sopenharmony_ci enum aarch64_insn_data3_type type); 4658c2ecf20Sopenharmony_ciu32 aarch64_insn_gen_logical_shifted_reg(enum aarch64_insn_register dst, 4668c2ecf20Sopenharmony_ci enum aarch64_insn_register src, 4678c2ecf20Sopenharmony_ci enum aarch64_insn_register reg, 4688c2ecf20Sopenharmony_ci int shift, 4698c2ecf20Sopenharmony_ci enum aarch64_insn_variant variant, 4708c2ecf20Sopenharmony_ci enum aarch64_insn_logic_type type); 4718c2ecf20Sopenharmony_ciu32 aarch64_insn_gen_move_reg(enum aarch64_insn_register dst, 4728c2ecf20Sopenharmony_ci enum aarch64_insn_register src, 4738c2ecf20Sopenharmony_ci enum aarch64_insn_variant variant); 4748c2ecf20Sopenharmony_ciu32 aarch64_insn_gen_logical_immediate(enum aarch64_insn_logic_type type, 4758c2ecf20Sopenharmony_ci enum aarch64_insn_variant variant, 4768c2ecf20Sopenharmony_ci enum aarch64_insn_register Rn, 4778c2ecf20Sopenharmony_ci enum aarch64_insn_register Rd, 4788c2ecf20Sopenharmony_ci u64 imm); 4798c2ecf20Sopenharmony_ciu32 aarch64_insn_gen_extr(enum aarch64_insn_variant variant, 4808c2ecf20Sopenharmony_ci enum aarch64_insn_register Rm, 4818c2ecf20Sopenharmony_ci enum aarch64_insn_register Rn, 4828c2ecf20Sopenharmony_ci enum aarch64_insn_register Rd, 4838c2ecf20Sopenharmony_ci u8 lsb); 4848c2ecf20Sopenharmony_ciu32 aarch64_insn_gen_prefetch(enum aarch64_insn_register base, 4858c2ecf20Sopenharmony_ci enum aarch64_insn_prfm_type type, 4868c2ecf20Sopenharmony_ci enum aarch64_insn_prfm_target target, 4878c2ecf20Sopenharmony_ci enum aarch64_insn_prfm_policy policy); 4888c2ecf20Sopenharmony_cis32 aarch64_get_branch_offset(u32 insn); 4898c2ecf20Sopenharmony_ciu32 aarch64_set_branch_offset(u32 insn, s32 offset); 4908c2ecf20Sopenharmony_ci 4918c2ecf20Sopenharmony_ciint aarch64_insn_patch_text_nosync(void *addr, u32 insn); 4928c2ecf20Sopenharmony_ciint aarch64_insn_patch_text(void *addrs[], u32 insns[], int cnt); 4938c2ecf20Sopenharmony_ci 4948c2ecf20Sopenharmony_cis32 aarch64_insn_adrp_get_offset(u32 insn); 4958c2ecf20Sopenharmony_ciu32 aarch64_insn_adrp_set_offset(u32 insn, s32 offset); 4968c2ecf20Sopenharmony_ci 4978c2ecf20Sopenharmony_cibool aarch32_insn_is_wide(u32 insn); 4988c2ecf20Sopenharmony_ci 4998c2ecf20Sopenharmony_ci#define A32_RN_OFFSET 16 5008c2ecf20Sopenharmony_ci#define A32_RT_OFFSET 12 5018c2ecf20Sopenharmony_ci#define A32_RT2_OFFSET 0 5028c2ecf20Sopenharmony_ci 5038c2ecf20Sopenharmony_ciu32 aarch64_insn_extract_system_reg(u32 insn); 5048c2ecf20Sopenharmony_ciu32 aarch32_insn_extract_reg_num(u32 insn, int offset); 5058c2ecf20Sopenharmony_ciu32 aarch32_insn_mcr_extract_opc2(u32 insn); 5068c2ecf20Sopenharmony_ciu32 aarch32_insn_mcr_extract_crm(u32 insn); 5078c2ecf20Sopenharmony_ci 5088c2ecf20Sopenharmony_citypedef bool (pstate_check_t)(unsigned long); 5098c2ecf20Sopenharmony_ciextern pstate_check_t * const aarch32_opcode_cond_checks[16]; 5108c2ecf20Sopenharmony_ci#endif /* __ASSEMBLY__ */ 5118c2ecf20Sopenharmony_ci 5128c2ecf20Sopenharmony_ci#endif /* __ASM_INSN_H */ 513