18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * arch/arm64/include/asm/cpucaps.h 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Copyright (C) 2016 ARM Ltd. 68c2ecf20Sopenharmony_ci */ 78c2ecf20Sopenharmony_ci#ifndef __ASM_CPUCAPS_H 88c2ecf20Sopenharmony_ci#define __ASM_CPUCAPS_H 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ci#define ARM64_WORKAROUND_CLEAN_CACHE 0 118c2ecf20Sopenharmony_ci#define ARM64_WORKAROUND_DEVICE_LOAD_ACQUIRE 1 128c2ecf20Sopenharmony_ci#define ARM64_WORKAROUND_845719 2 138c2ecf20Sopenharmony_ci#define ARM64_HAS_SYSREG_GIC_CPUIF 3 148c2ecf20Sopenharmony_ci#define ARM64_HAS_PAN 4 158c2ecf20Sopenharmony_ci#define ARM64_HAS_LSE_ATOMICS 5 168c2ecf20Sopenharmony_ci#define ARM64_WORKAROUND_CAVIUM_23154 6 178c2ecf20Sopenharmony_ci#define ARM64_WORKAROUND_834220 7 188c2ecf20Sopenharmony_ci#define ARM64_HAS_NO_HW_PREFETCH 8 198c2ecf20Sopenharmony_ci#define ARM64_HAS_UAO 9 208c2ecf20Sopenharmony_ci#define ARM64_ALT_PAN_NOT_UAO 10 218c2ecf20Sopenharmony_ci#define ARM64_HAS_VIRT_HOST_EXTN 11 228c2ecf20Sopenharmony_ci#define ARM64_WORKAROUND_CAVIUM_27456 12 238c2ecf20Sopenharmony_ci#define ARM64_HAS_32BIT_EL0 13 248c2ecf20Sopenharmony_ci#define ARM64_HARDEN_EL2_VECTORS 14 258c2ecf20Sopenharmony_ci#define ARM64_HAS_CNP 15 268c2ecf20Sopenharmony_ci#define ARM64_HAS_NO_FPSIMD 16 278c2ecf20Sopenharmony_ci#define ARM64_WORKAROUND_REPEAT_TLBI 17 288c2ecf20Sopenharmony_ci#define ARM64_WORKAROUND_QCOM_FALKOR_E1003 18 298c2ecf20Sopenharmony_ci#define ARM64_WORKAROUND_858921 19 308c2ecf20Sopenharmony_ci#define ARM64_WORKAROUND_CAVIUM_30115 20 318c2ecf20Sopenharmony_ci#define ARM64_HAS_DCPOP 21 328c2ecf20Sopenharmony_ci#define ARM64_SVE 22 338c2ecf20Sopenharmony_ci#define ARM64_UNMAP_KERNEL_AT_EL0 23 348c2ecf20Sopenharmony_ci#define ARM64_SPECTRE_V2 24 358c2ecf20Sopenharmony_ci#define ARM64_HAS_RAS_EXTN 25 368c2ecf20Sopenharmony_ci#define ARM64_WORKAROUND_843419 26 378c2ecf20Sopenharmony_ci#define ARM64_HAS_CACHE_IDC 27 388c2ecf20Sopenharmony_ci#define ARM64_HAS_CACHE_DIC 28 398c2ecf20Sopenharmony_ci#define ARM64_HW_DBM 29 408c2ecf20Sopenharmony_ci#define ARM64_SPECTRE_V4 30 418c2ecf20Sopenharmony_ci#define ARM64_MISMATCHED_CACHE_TYPE 31 428c2ecf20Sopenharmony_ci#define ARM64_HAS_STAGE2_FWB 32 438c2ecf20Sopenharmony_ci#define ARM64_HAS_CRC32 33 448c2ecf20Sopenharmony_ci#define ARM64_SSBS 34 458c2ecf20Sopenharmony_ci#define ARM64_WORKAROUND_1418040 35 468c2ecf20Sopenharmony_ci#define ARM64_HAS_SB 36 478c2ecf20Sopenharmony_ci#define ARM64_WORKAROUND_SPECULATIVE_AT 37 488c2ecf20Sopenharmony_ci#define ARM64_HAS_ADDRESS_AUTH_ARCH 38 498c2ecf20Sopenharmony_ci#define ARM64_HAS_ADDRESS_AUTH_IMP_DEF 39 508c2ecf20Sopenharmony_ci#define ARM64_HAS_GENERIC_AUTH_ARCH 40 518c2ecf20Sopenharmony_ci#define ARM64_HAS_GENERIC_AUTH_IMP_DEF 41 528c2ecf20Sopenharmony_ci#define ARM64_HAS_IRQ_PRIO_MASKING 42 538c2ecf20Sopenharmony_ci#define ARM64_HAS_DCPODP 43 548c2ecf20Sopenharmony_ci#define ARM64_WORKAROUND_1463225 44 558c2ecf20Sopenharmony_ci#define ARM64_WORKAROUND_CAVIUM_TX2_219_TVM 45 568c2ecf20Sopenharmony_ci#define ARM64_WORKAROUND_CAVIUM_TX2_219_PRFM 46 578c2ecf20Sopenharmony_ci#define ARM64_WORKAROUND_1542419 47 588c2ecf20Sopenharmony_ci#define ARM64_HAS_E0PD 48 598c2ecf20Sopenharmony_ci#define ARM64_HAS_RNG 49 608c2ecf20Sopenharmony_ci#define ARM64_HAS_AMU_EXTN 50 618c2ecf20Sopenharmony_ci#define ARM64_HAS_ADDRESS_AUTH 51 628c2ecf20Sopenharmony_ci#define ARM64_HAS_GENERIC_AUTH 52 638c2ecf20Sopenharmony_ci#define ARM64_HAS_32BIT_EL1 53 648c2ecf20Sopenharmony_ci#define ARM64_BTI 54 658c2ecf20Sopenharmony_ci#define ARM64_HAS_ARMv8_4_TTL 55 668c2ecf20Sopenharmony_ci#define ARM64_HAS_TLB_RANGE 56 678c2ecf20Sopenharmony_ci#define ARM64_MTE 57 688c2ecf20Sopenharmony_ci#define ARM64_WORKAROUND_1508412 58 698c2ecf20Sopenharmony_ci#define ARM64_SPECTRE_BHB 59 708c2ecf20Sopenharmony_ci#define ARM64_WORKAROUND_2457168 60 718c2ecf20Sopenharmony_ci#define ARM64_WORKAROUND_1742098 61 728c2ecf20Sopenharmony_ci 738c2ecf20Sopenharmony_ci#define ARM64_NCAPS 62 748c2ecf20Sopenharmony_ci 758c2ecf20Sopenharmony_ci#endif /* __ASM_CPUCAPS_H */ 76