提交 c6956dac 编写于 作者: M Mark Brown 提交者: Wang ShaoBo

arm64/fp: Rename SVE and SME LEN field name to _WIDTH

mainline inclusion
from mainline-v5.19-rc1
commit 5b06dcfd
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I5ITJT
CVE: NA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=5b06dcfd9e0a5dd63ecadf9169ee92a80b063322

-------------------------------------------------

The SVE and SVE length configuration field LEN have constants specifying
their width called _SIZE rather than the more normal _WIDTH, in preparation
for automatic generation rename to _WIDTH. No functional change.
Signed-off-by: NMark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20220510161208.631259-3-broonie@kernel.orgSigned-off-by: NCatalin Marinas <catalin.marinas@arm.com>
Signed-off-by: NWang ShaoBo <bobo.shaobowang@huawei.com>
上级 757dc9ab
...@@ -1044,14 +1044,14 @@ ...@@ -1044,14 +1044,14 @@
#define DCZID_BS_SHIFT 0 #define DCZID_BS_SHIFT 0
#define ZCR_ELx_LEN_SHIFT 0 #define ZCR_ELx_LEN_SHIFT 0
#define ZCR_ELx_LEN_SIZE 4 #define ZCR_ELx_LEN_WIDTH 4
#define ZCR_ELx_LEN_MASK 0xf #define ZCR_ELx_LEN_MASK 0xf
#define SMCR_ELx_FA64_SHIFT 31 #define SMCR_ELx_FA64_SHIFT 31
#define SMCR_ELx_FA64_MASK (1 << SMCR_ELx_FA64_SHIFT) #define SMCR_ELx_FA64_MASK (1 << SMCR_ELx_FA64_SHIFT)
#define SMCR_ELx_LEN_SHIFT 0 #define SMCR_ELx_LEN_SHIFT 0
#define SMCR_ELx_LEN_SIZE 4 #define SMCR_ELx_LEN_WIDTH 4
#define SMCR_ELx_LEN_MASK 0xf #define SMCR_ELx_LEN_MASK 0xf
#define CPACR_EL1_SMEN_EL1EN (BIT(24)) /* enable EL1 access */ #define CPACR_EL1_SMEN_EL1EN (BIT(24)) /* enable EL1 access */
......
...@@ -541,13 +541,13 @@ static const struct arm64_ftr_bits ftr_id_dfr1[] = { ...@@ -541,13 +541,13 @@ static const struct arm64_ftr_bits ftr_id_dfr1[] = {
static const struct arm64_ftr_bits ftr_zcr[] = { static const struct arm64_ftr_bits ftr_zcr[] = {
ARM64_FTR_BITS(FTR_HIDDEN, FTR_NONSTRICT, FTR_LOWER_SAFE, ARM64_FTR_BITS(FTR_HIDDEN, FTR_NONSTRICT, FTR_LOWER_SAFE,
ZCR_ELx_LEN_SHIFT, ZCR_ELx_LEN_SIZE, 0), /* LEN */ ZCR_ELx_LEN_SHIFT, ZCR_ELx_LEN_WIDTH, 0), /* LEN */
ARM64_FTR_END, ARM64_FTR_END,
}; };
static const struct arm64_ftr_bits ftr_smcr[] = { static const struct arm64_ftr_bits ftr_smcr[] = {
ARM64_FTR_BITS(FTR_HIDDEN, FTR_NONSTRICT, FTR_LOWER_SAFE, ARM64_FTR_BITS(FTR_HIDDEN, FTR_NONSTRICT, FTR_LOWER_SAFE,
SMCR_ELx_LEN_SHIFT, SMCR_ELx_LEN_SIZE, 0), /* LEN */ SMCR_ELx_LEN_SHIFT, SMCR_ELx_LEN_WIDTH, 0), /* LEN */
ARM64_FTR_END, ARM64_FTR_END,
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册