From nobody Thu Nov 10 21:24:57 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4N7Zc92wZWz4XJ7Z; Thu, 10 Nov 2022 21:24:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4N7Zc92cFyz4FZw; Thu, 10 Nov 2022 21:24:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668115497; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=hUKyCaT4k1H279/qdP/YSoSaHSCIQiEqEj8ir4SJSE8=; b=gc1zSebAQls9wZDWkAU/neeQG48iZxtR53qOOIC5HsPMa/90+TVmUBIa1+420KCad0oOOQ NvR6hHdBfQvf/xBbxGWvakEIuH1QBT07NVbtwomFAfPaC7zbkFyL/N54QwOEkl7kWdJ95+ vGmSo2qV1g2wkbJdLKVLDwk4+66WT6BOOg6KdCudWhuiCIkKTH0ffXg2yPxlby2veKe87t v7qxk6rBQXbLZ8x+RAtAhzAVoh5pkOM7yY9scZmvsgb8l47KGVt5JA1YhXig4J3YnFkfPM 087yooK+dNE/rnzyAkYCoZybhsZGvUQ9DaqMiU/K0RC9+Mru+wrouIprwXGxQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668115497; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=hUKyCaT4k1H279/qdP/YSoSaHSCIQiEqEj8ir4SJSE8=; b=S2OTxROeysyoTwUfJi5uZVhV4bXKgaClEhVxTNfa1ak60D+uJBoPtdi9ZoVCq7oFro/aBI 4+Nkgr40NHFLj3RduGEJNlLbblG01vtnZ16719RbcrZP5nyESc6ws2I3pS9ayTDsRJDWgM n2AYrNpfuX+Zto868ViXNjUcBsSPpsf1DY/KxWSJLAMp4XELmU4CIZgdNlKyTwcftX8bvu F6zcnThwybW2ev4KdhtsId0HuzMNWBVSbJBKWCcL06aNvJUbgjspt7iZstci6XQhIVk3Le 3mBDH8QD3tTzPiC8/wz/9iQHlq9FjNR7yiLsb6nbFnsN5gJ8BD3dXnvOPTQjPA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1668115497; a=rsa-sha256; cv=none; b=UTJXC2I4lD6tXz8puYWvrrBXssdBZqNi5bT67g9r2fieZV3lUC/f2amogpT34+kMxlrFLV 2dbs0hcTt+M7w5PWJKyy2YuTNhsx7lbMdnkeIrWpZ8Z5YmqRL+iBZItsdhQBEXS2twp0AC l6VJgwfbL6Z3K/nFR5s9FslMr1HbFh0AIqIj7WejZZLiJxp6A6Uv06bLSIUYAgw4rByJZt bRZ4IM9B15aO+F/HOkdi7OYLaeQs20/QZNls2OZ18aW2Iplyw+5GlM4LOZT6hwG8Ob80jv M/jU+JeDmUtWRFtN7EbcaFuvHL5/9WJiHoT/gXPFq1ZYYFnEWLsKZSL4j02rLw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4N7Zc91dRdzH1M; Thu, 10 Nov 2022 21:24:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2AALOvPQ085681; Thu, 10 Nov 2022 21:24:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2AALOvNb085680; Thu, 10 Nov 2022 21:24:57 GMT (envelope-from git) Date: Thu, 10 Nov 2022 21:24:57 GMT Message-Id: <202211102124.2AALOvNb085680@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: John Baldwin Subject: git: ffe741c4bd2b - stable/13 - Sort the M* and P* arm64 registers List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: ffe741c4bd2b1d9325b889dd189236c211f5f3ef Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=ffe741c4bd2b1d9325b889dd189236c211f5f3ef commit ffe741c4bd2b1d9325b889dd189236c211f5f3ef Author: Andrew Turner AuthorDate: 2022-03-11 10:31:05 +0000 Commit: John Baldwin CommitDate: 2022-11-10 21:04:39 +0000 Sort the M* and P* arm64 registers Sponsored by: Innovate UK (cherry picked from commit 2abeef73004238d49f781b12b89e003ceb048018) --- sys/arm64/include/armreg.h | 282 ++++++++++++++++++++++----------------------- 1 file changed, 141 insertions(+), 141 deletions(-) diff --git a/sys/arm64/include/armreg.h b/sys/arm64/include/armreg.h index a5119cbb904d..8f38da01c226 100644 --- a/sys/arm64/include/armreg.h +++ b/sys/arm64/include/armreg.h @@ -1062,6 +1062,147 @@ #define ID_ISAR5_VCMA_NONE (UL(0x0) << ID_ISAR5_VCMA_SHIFT) #define ID_ISAR5_VCMA_IMPL (UL(0x1) << ID_ISAR5_VCMA_SHIFT) +/* MAIR_EL1 - Memory Attribute Indirection Register */ +#define MAIR_ATTR_MASK(idx) (0xff << ((n)* 8)) +#define MAIR_ATTR(attr, idx) ((attr) << ((idx) * 8)) +#define MAIR_DEVICE_nGnRnE 0x00 +#define MAIR_DEVICE_nGnRE 0x04 +#define MAIR_NORMAL_NC 0x44 +#define MAIR_NORMAL_WT 0xbb +#define MAIR_NORMAL_WB 0xff + +/* MDSCR_EL1 - Monitor Debug System Control Register */ +#define MDSCR_SS_SHIFT 0 +#define MDSCR_SS (UL(0x1) << MDSCR_SS_SHIFT) +#define MDSCR_KDE_SHIFT 13 +#define MDSCR_KDE (UL(0x1) << MDSCR_KDE_SHIFT) +#define MDSCR_MDE_SHIFT 15 +#define MDSCR_MDE (UL(0x1) << MDSCR_MDE_SHIFT) + +/* MVFR0_EL1 */ +#define MVFR0_EL1 MRS_REG(MVFR0_EL1) +#define MVFR0_EL1_op0 0x3 +#define MVFR0_EL1_op1 0x0 +#define MVFR0_EL1_CRn 0x0 +#define MVFR0_EL1_CRm 0x3 +#define MVFR0_EL1_op2 0x0 +#define MVFR0_SIMDReg_SHIFT 0 +#define MVFR0_SIMDReg_MASK (UL(0xf) << MVFR0_SIMDReg_SHIFT) +#define MVFR0_SIMDReg_VAL(x) ((x) & MVFR0_SIMDReg_MASK) +#define MVFR0_SIMDReg_NONE (UL(0x0) << MVFR0_SIMDReg_SHIFT) +#define MVFR0_SIMDReg_FP (UL(0x1) << MVFR0_SIMDReg_SHIFT) +#define MVFR0_SIMDReg_AdvSIMD (UL(0x2) << MVFR0_SIMDReg_SHIFT) +#define MVFR0_FPSP_SHIFT 4 +#define MVFR0_FPSP_MASK (UL(0xf) << MVFR0_FPSP_SHIFT) +#define MVFR0_FPSP_VAL(x) ((x) & MVFR0_FPSP_MASK) +#define MVFR0_FPSP_NONE (UL(0x0) << MVFR0_FPSP_SHIFT) +#define MVFR0_FPSP_VFP_v2 (UL(0x1) << MVFR0_FPSP_SHIFT) +#define MVFR0_FPSP_VFP_v3_v4 (UL(0x2) << MVFR0_FPSP_SHIFT) +#define MVFR0_FPDP_SHIFT 8 +#define MVFR0_FPDP_MASK (UL(0xf) << MVFR0_FPDP_SHIFT) +#define MVFR0_FPDP_VAL(x) ((x) & MVFR0_FPDP_MASK) +#define MVFR0_FPDP_NONE (UL(0x0) << MVFR0_FPDP_SHIFT) +#define MVFR0_FPDP_VFP_v2 (UL(0x1) << MVFR0_FPDP_SHIFT) +#define MVFR0_FPDP_VFP_v3_v4 (UL(0x2) << MVFR0_FPDP_SHIFT) +#define MVFR0_FPTrap_SHIFT 12 +#define MVFR0_FPTrap_MASK (UL(0xf) << MVFR0_FPTrap_SHIFT) +#define MVFR0_FPTrap_VAL(x) ((x) & MVFR0_FPTrap_MASK) +#define MVFR0_FPTrap_NONE (UL(0x0) << MVFR0_FPTrap_SHIFT) +#define MVFR0_FPTrap_IMPL (UL(0x1) << MVFR0_FPTrap_SHIFT) +#define MVFR0_FPDivide_SHIFT 16 +#define MVFR0_FPDivide_MASK (UL(0xf) << MVFR0_FPDivide_SHIFT) +#define MVFR0_FPDivide_VAL(x) ((x) & MVFR0_FPDivide_MASK) +#define MVFR0_FPDivide_NONE (UL(0x0) << MVFR0_FPDivide_SHIFT) +#define MVFR0_FPDivide_IMPL (UL(0x1) << MVFR0_FPDivide_SHIFT) +#define MVFR0_FPSqrt_SHIFT 20 +#define MVFR0_FPSqrt_MASK (UL(0xf) << MVFR0_FPSqrt_SHIFT) +#define MVFR0_FPSqrt_VAL(x) ((x) & MVFR0_FPSqrt_MASK) +#define MVFR0_FPSqrt_NONE (UL(0x0) << MVFR0_FPSqrt_SHIFT) +#define MVFR0_FPSqrt_IMPL (UL(0x1) << MVFR0_FPSqrt_SHIFT) +#define MVFR0_FPShVec_SHIFT 24 +#define MVFR0_FPShVec_MASK (UL(0xf) << MVFR0_FPShVec_SHIFT) +#define MVFR0_FPShVec_VAL(x) ((x) & MVFR0_FPShVec_MASK) +#define MVFR0_FPShVec_NONE (UL(0x0) << MVFR0_FPShVec_SHIFT) +#define MVFR0_FPShVec_IMPL (UL(0x1) << MVFR0_FPShVec_SHIFT) +#define MVFR0_FPRound_SHIFT 28 +#define MVFR0_FPRound_MASK (UL(0xf) << MVFR0_FPRound_SHIFT) +#define MVFR0_FPRound_VAL(x) ((x) & MVFR0_FPRound_MASK) +#define MVFR0_FPRound_NONE (UL(0x0) << MVFR0_FPRound_SHIFT) +#define MVFR0_FPRound_IMPL (UL(0x1) << MVFR0_FPRound_SHIFT) + +/* MVFR1_EL1 */ +#define MVFR1_EL1 MRS_REG(MVFR1_EL1) +#define MVFR1_EL1_op0 0x3 +#define MVFR1_EL1_op1 0x0 +#define MVFR1_EL1_CRn 0x0 +#define MVFR1_EL1_CRm 0x3 +#define MVFR1_EL1_op2 0x1 +#define MVFR1_FPFtZ_SHIFT 0 +#define MVFR1_FPFtZ_MASK (UL(0xf) << MVFR1_FPFtZ_SHIFT) +#define MVFR1_FPFtZ_VAL(x) ((x) & MVFR1_FPFtZ_MASK) +#define MVFR1_FPFtZ_NONE (UL(0x0) << MVFR1_FPFtZ_SHIFT) +#define MVFR1_FPFtZ_IMPL (UL(0x1) << MVFR1_FPFtZ_SHIFT) +#define MVFR1_FPDNaN_SHIFT 4 +#define MVFR1_FPDNaN_MASK (UL(0xf) << MVFR1_FPDNaN_SHIFT) +#define MVFR1_FPDNaN_VAL(x) ((x) & MVFR1_FPDNaN_MASK) +#define MVFR1_FPDNaN_NONE (UL(0x0) << MVFR1_FPDNaN_SHIFT) +#define MVFR1_FPDNaN_IMPL (UL(0x1) << MVFR1_FPDNaN_SHIFT) +#define MVFR1_SIMDLS_SHIFT 8 +#define MVFR1_SIMDLS_MASK (UL(0xf) << MVFR1_SIMDLS_SHIFT) +#define MVFR1_SIMDLS_VAL(x) ((x) & MVFR1_SIMDLS_MASK) +#define MVFR1_SIMDLS_NONE (UL(0x0) << MVFR1_SIMDLS_SHIFT) +#define MVFR1_SIMDLS_IMPL (UL(0x1) << MVFR1_SIMDLS_SHIFT) +#define MVFR1_SIMDInt_SHIFT 12 +#define MVFR1_SIMDInt_MASK (UL(0xf) << MVFR1_SIMDInt_SHIFT) +#define MVFR1_SIMDInt_VAL(x) ((x) & MVFR1_SIMDInt_MASK) +#define MVFR1_SIMDInt_NONE (UL(0x0) << MVFR1_SIMDInt_SHIFT) +#define MVFR1_SIMDInt_IMPL (UL(0x1) << MVFR1_SIMDInt_SHIFT) +#define MVFR1_SIMDSP_SHIFT 16 +#define MVFR1_SIMDSP_MASK (UL(0xf) << MVFR1_SIMDSP_SHIFT) +#define MVFR1_SIMDSP_VAL(x) ((x) & MVFR1_SIMDSP_MASK) +#define MVFR1_SIMDSP_NONE (UL(0x0) << MVFR1_SIMDSP_SHIFT) +#define MVFR1_SIMDSP_IMPL (UL(0x1) << MVFR1_SIMDSP_SHIFT) +#define MVFR1_SIMDHP_SHIFT 20 +#define MVFR1_SIMDHP_MASK (UL(0xf) << MVFR1_SIMDHP_SHIFT) +#define MVFR1_SIMDHP_VAL(x) ((x) & MVFR1_SIMDHP_MASK) +#define MVFR1_SIMDHP_NONE (UL(0x0) << MVFR1_SIMDHP_SHIFT) +#define MVFR1_SIMDHP_CONV_SP (UL(0x1) << MVFR1_SIMDHP_SHIFT) +#define MVFR1_SIMDHP_ARITH (UL(0x2) << MVFR1_SIMDHP_SHIFT) +#define MVFR1_FPHP_SHIFT 24 +#define MVFR1_FPHP_MASK (UL(0xf) << MVFR1_FPHP_SHIFT) +#define MVFR1_FPHP_VAL(x) ((x) & MVFR1_FPHP_MASK) +#define MVFR1_FPHP_NONE (UL(0x0) << MVFR1_FPHP_SHIFT) +#define MVFR1_FPHP_CONV_SP (UL(0x1) << MVFR1_FPHP_SHIFT) +#define MVFR1_FPHP_CONV_DP (UL(0x2) << MVFR1_FPHP_SHIFT) +#define MVFR1_FPHP_ARITH (UL(0x3) << MVFR1_FPHP_SHIFT) +#define MVFR1_SIMDFMAC_SHIFT 28 +#define MVFR1_SIMDFMAC_MASK (UL(0xf) << MVFR1_SIMDFMAC_SHIFT) +#define MVFR1_SIMDFMAC_VAL(x) ((x) & MVFR1_SIMDFMAC_MASK) +#define MVFR1_SIMDFMAC_NONE (UL(0x0) << MVFR1_SIMDFMAC_SHIFT) +#define MVFR1_SIMDFMAC_IMPL (UL(0x1) << MVFR1_SIMDFMAC_SHIFT) + +/* PAR_EL1 - Physical Address Register */ +#define PAR_F_SHIFT 0 +#define PAR_F (0x1 << PAR_F_SHIFT) +#define PAR_SUCCESS(x) (((x) & PAR_F) == 0) +/* When PAR_F == 0 (success) */ +#define PAR_LOW_MASK 0xfff +#define PAR_SH_SHIFT 7 +#define PAR_SH_MASK (0x3 << PAR_SH_SHIFT) +#define PAR_NS_SHIFT 9 +#define PAR_NS_MASK (0x3 << PAR_NS_SHIFT) +#define PAR_PA_SHIFT 12 +#define PAR_PA_MASK 0x0000fffffffff000 +#define PAR_ATTR_SHIFT 56 +#define PAR_ATTR_MASK (0xff << PAR_ATTR_SHIFT) +/* When PAR_F == 1 (aborted) */ +#define PAR_FST_SHIFT 1 +#define PAR_FST_MASK (0x3f << PAR_FST_SHIFT) +#define PAR_PTW_SHIFT 8 +#define PAR_PTW_MASK (0x1 << PAR_PTW_SHIFT) +#define PAR_S_SHIFT 9 +#define PAR_S_MASK (0x1 << PAR_S_SHIFT) + /* PMBIDR_EL1 */ #define PMBIDR_EL1 MRS_REG(PMBIDR_EL1) #define PMBIDR_EL1_op0 0x3 @@ -1275,147 +1416,6 @@ #define PMSNEVFR_EL1_CRm 0x9 #define PMSNEVFR_EL1_op2 0x1 -/* MAIR_EL1 - Memory Attribute Indirection Register */ -#define MAIR_ATTR_MASK(idx) (0xff << ((n)* 8)) -#define MAIR_ATTR(attr, idx) ((attr) << ((idx) * 8)) -#define MAIR_DEVICE_nGnRnE 0x00 -#define MAIR_DEVICE_nGnRE 0x04 -#define MAIR_NORMAL_NC 0x44 -#define MAIR_NORMAL_WT 0xbb -#define MAIR_NORMAL_WB 0xff - -/* MDSCR_EL1 - Monitor Debug System Control Register */ -#define MDSCR_SS_SHIFT 0 -#define MDSCR_SS (UL(0x1) << MDSCR_SS_SHIFT) -#define MDSCR_KDE_SHIFT 13 -#define MDSCR_KDE (UL(0x1) << MDSCR_KDE_SHIFT) -#define MDSCR_MDE_SHIFT 15 -#define MDSCR_MDE (UL(0x1) << MDSCR_MDE_SHIFT) - -/* MVFR0_EL1 */ -#define MVFR0_EL1 MRS_REG(MVFR0_EL1) -#define MVFR0_EL1_op0 0x3 -#define MVFR0_EL1_op1 0x0 -#define MVFR0_EL1_CRn 0x0 -#define MVFR0_EL1_CRm 0x3 -#define MVFR0_EL1_op2 0x0 -#define MVFR0_SIMDReg_SHIFT 0 -#define MVFR0_SIMDReg_MASK (UL(0xf) << MVFR0_SIMDReg_SHIFT) -#define MVFR0_SIMDReg_VAL(x) ((x) & MVFR0_SIMDReg_MASK) -#define MVFR0_SIMDReg_NONE (UL(0x0) << MVFR0_SIMDReg_SHIFT) -#define MVFR0_SIMDReg_FP (UL(0x1) << MVFR0_SIMDReg_SHIFT) -#define MVFR0_SIMDReg_AdvSIMD (UL(0x2) << MVFR0_SIMDReg_SHIFT) -#define MVFR0_FPSP_SHIFT 4 -#define MVFR0_FPSP_MASK (UL(0xf) << MVFR0_FPSP_SHIFT) -#define MVFR0_FPSP_VAL(x) ((x) & MVFR0_FPSP_MASK) -#define MVFR0_FPSP_NONE (UL(0x0) << MVFR0_FPSP_SHIFT) -#define MVFR0_FPSP_VFP_v2 (UL(0x1) << MVFR0_FPSP_SHIFT) -#define MVFR0_FPSP_VFP_v3_v4 (UL(0x2) << MVFR0_FPSP_SHIFT) -#define MVFR0_FPDP_SHIFT 8 -#define MVFR0_FPDP_MASK (UL(0xf) << MVFR0_FPDP_SHIFT) -#define MVFR0_FPDP_VAL(x) ((x) & MVFR0_FPDP_MASK) -#define MVFR0_FPDP_NONE (UL(0x0) << MVFR0_FPDP_SHIFT) -#define MVFR0_FPDP_VFP_v2 (UL(0x1) << MVFR0_FPDP_SHIFT) -#define MVFR0_FPDP_VFP_v3_v4 (UL(0x2) << MVFR0_FPDP_SHIFT) -#define MVFR0_FPTrap_SHIFT 12 -#define MVFR0_FPTrap_MASK (UL(0xf) << MVFR0_FPTrap_SHIFT) -#define MVFR0_FPTrap_VAL(x) ((x) & MVFR0_FPTrap_MASK) -#define MVFR0_FPTrap_NONE (UL(0x0) << MVFR0_FPTrap_SHIFT) -#define MVFR0_FPTrap_IMPL (UL(0x1) << MVFR0_FPTrap_SHIFT) -#define MVFR0_FPDivide_SHIFT 16 -#define MVFR0_FPDivide_MASK (UL(0xf) << MVFR0_FPDivide_SHIFT) -#define MVFR0_FPDivide_VAL(x) ((x) & MVFR0_FPDivide_MASK) -#define MVFR0_FPDivide_NONE (UL(0x0) << MVFR0_FPDivide_SHIFT) -#define MVFR0_FPDivide_IMPL (UL(0x1) << MVFR0_FPDivide_SHIFT) -#define MVFR0_FPSqrt_SHIFT 20 -#define MVFR0_FPSqrt_MASK (UL(0xf) << MVFR0_FPSqrt_SHIFT) -#define MVFR0_FPSqrt_VAL(x) ((x) & MVFR0_FPSqrt_MASK) -#define MVFR0_FPSqrt_NONE (UL(0x0) << MVFR0_FPSqrt_SHIFT) -#define MVFR0_FPSqrt_IMPL (UL(0x1) << MVFR0_FPSqrt_SHIFT) -#define MVFR0_FPShVec_SHIFT 24 -#define MVFR0_FPShVec_MASK (UL(0xf) << MVFR0_FPShVec_SHIFT) -#define MVFR0_FPShVec_VAL(x) ((x) & MVFR0_FPShVec_MASK) -#define MVFR0_FPShVec_NONE (UL(0x0) << MVFR0_FPShVec_SHIFT) -#define MVFR0_FPShVec_IMPL (UL(0x1) << MVFR0_FPShVec_SHIFT) -#define MVFR0_FPRound_SHIFT 28 -#define MVFR0_FPRound_MASK (UL(0xf) << MVFR0_FPRound_SHIFT) -#define MVFR0_FPRound_VAL(x) ((x) & MVFR0_FPRound_MASK) -#define MVFR0_FPRound_NONE (UL(0x0) << MVFR0_FPRound_SHIFT) -#define MVFR0_FPRound_IMPL (UL(0x1) << MVFR0_FPRound_SHIFT) - -/* MVFR1_EL1 */ -#define MVFR1_EL1 MRS_REG(MVFR1_EL1) -#define MVFR1_EL1_op0 0x3 -#define MVFR1_EL1_op1 0x0 -#define MVFR1_EL1_CRn 0x0 -#define MVFR1_EL1_CRm 0x3 -#define MVFR1_EL1_op2 0x1 -#define MVFR1_FPFtZ_SHIFT 0 -#define MVFR1_FPFtZ_MASK (UL(0xf) << MVFR1_FPFtZ_SHIFT) -#define MVFR1_FPFtZ_VAL(x) ((x) & MVFR1_FPFtZ_MASK) -#define MVFR1_FPFtZ_NONE (UL(0x0) << MVFR1_FPFtZ_SHIFT) -#define MVFR1_FPFtZ_IMPL (UL(0x1) << MVFR1_FPFtZ_SHIFT) -#define MVFR1_FPDNaN_SHIFT 4 -#define MVFR1_FPDNaN_MASK (UL(0xf) << MVFR1_FPDNaN_SHIFT) -#define MVFR1_FPDNaN_VAL(x) ((x) & MVFR1_FPDNaN_MASK) -#define MVFR1_FPDNaN_NONE (UL(0x0) << MVFR1_FPDNaN_SHIFT) -#define MVFR1_FPDNaN_IMPL (UL(0x1) << MVFR1_FPDNaN_SHIFT) -#define MVFR1_SIMDLS_SHIFT 8 -#define MVFR1_SIMDLS_MASK (UL(0xf) << MVFR1_SIMDLS_SHIFT) -#define MVFR1_SIMDLS_VAL(x) ((x) & MVFR1_SIMDLS_MASK) -#define MVFR1_SIMDLS_NONE (UL(0x0) << MVFR1_SIMDLS_SHIFT) -#define MVFR1_SIMDLS_IMPL (UL(0x1) << MVFR1_SIMDLS_SHIFT) -#define MVFR1_SIMDInt_SHIFT 12 -#define MVFR1_SIMDInt_MASK (UL(0xf) << MVFR1_SIMDInt_SHIFT) -#define MVFR1_SIMDInt_VAL(x) ((x) & MVFR1_SIMDInt_MASK) -#define MVFR1_SIMDInt_NONE (UL(0x0) << MVFR1_SIMDInt_SHIFT) -#define MVFR1_SIMDInt_IMPL (UL(0x1) << MVFR1_SIMDInt_SHIFT) -#define MVFR1_SIMDSP_SHIFT 16 -#define MVFR1_SIMDSP_MASK (UL(0xf) << MVFR1_SIMDSP_SHIFT) -#define MVFR1_SIMDSP_VAL(x) ((x) & MVFR1_SIMDSP_MASK) -#define MVFR1_SIMDSP_NONE (UL(0x0) << MVFR1_SIMDSP_SHIFT) -#define MVFR1_SIMDSP_IMPL (UL(0x1) << MVFR1_SIMDSP_SHIFT) -#define MVFR1_SIMDHP_SHIFT 20 -#define MVFR1_SIMDHP_MASK (UL(0xf) << MVFR1_SIMDHP_SHIFT) -#define MVFR1_SIMDHP_VAL(x) ((x) & MVFR1_SIMDHP_MASK) -#define MVFR1_SIMDHP_NONE (UL(0x0) << MVFR1_SIMDHP_SHIFT) -#define MVFR1_SIMDHP_CONV_SP (UL(0x1) << MVFR1_SIMDHP_SHIFT) -#define MVFR1_SIMDHP_ARITH (UL(0x2) << MVFR1_SIMDHP_SHIFT) -#define MVFR1_FPHP_SHIFT 24 -#define MVFR1_FPHP_MASK (UL(0xf) << MVFR1_FPHP_SHIFT) -#define MVFR1_FPHP_VAL(x) ((x) & MVFR1_FPHP_MASK) -#define MVFR1_FPHP_NONE (UL(0x0) << MVFR1_FPHP_SHIFT) -#define MVFR1_FPHP_CONV_SP (UL(0x1) << MVFR1_FPHP_SHIFT) -#define MVFR1_FPHP_CONV_DP (UL(0x2) << MVFR1_FPHP_SHIFT) -#define MVFR1_FPHP_ARITH (UL(0x3) << MVFR1_FPHP_SHIFT) -#define MVFR1_SIMDFMAC_SHIFT 28 -#define MVFR1_SIMDFMAC_MASK (UL(0xf) << MVFR1_SIMDFMAC_SHIFT) -#define MVFR1_SIMDFMAC_VAL(x) ((x) & MVFR1_SIMDFMAC_MASK) -#define MVFR1_SIMDFMAC_NONE (UL(0x0) << MVFR1_SIMDFMAC_SHIFT) -#define MVFR1_SIMDFMAC_IMPL (UL(0x1) << MVFR1_SIMDFMAC_SHIFT) - -/* PAR_EL1 - Physical Address Register */ -#define PAR_F_SHIFT 0 -#define PAR_F (0x1 << PAR_F_SHIFT) -#define PAR_SUCCESS(x) (((x) & PAR_F) == 0) -/* When PAR_F == 0 (success) */ -#define PAR_LOW_MASK 0xfff -#define PAR_SH_SHIFT 7 -#define PAR_SH_MASK (0x3 << PAR_SH_SHIFT) -#define PAR_NS_SHIFT 9 -#define PAR_NS_MASK (0x3 << PAR_NS_SHIFT) -#define PAR_PA_SHIFT 12 -#define PAR_PA_MASK 0x0000fffffffff000 -#define PAR_ATTR_SHIFT 56 -#define PAR_ATTR_MASK (0xff << PAR_ATTR_SHIFT) -/* When PAR_F == 1 (aborted) */ -#define PAR_FST_SHIFT 1 -#define PAR_FST_MASK (0x3f << PAR_FST_SHIFT) -#define PAR_PTW_SHIFT 8 -#define PAR_PTW_MASK (0x1 << PAR_PTW_SHIFT) -#define PAR_S_SHIFT 9 -#define PAR_S_MASK (0x1 << PAR_S_SHIFT) - /* SCTLR_EL1 - System Control Register */ #define SCTLR_RES1 0x30d00800 /* Reserved ARMv8.0, write 1 */ #define SCTLR_M (UL(0x1) << 0)