From nobody Fri Mar 11 11:31:28 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 0EB3919FAD12; Fri, 11 Mar 2022 11:31:29 +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 4KFP006xBbz4vc0; Fri, 11 Mar 2022 11:31:28 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646998289; 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=cpWo6F1ZwULAK8OhO3jufSKxOMsCC5zoT8TDk673KD4=; b=Vl7oCosomFVD/+3Tk8oena9F2mIJYuvYUNiyNKbeo10NhTaCrkLz4q3gTcYH9gnMqGfJAy qnawoDBI+hOXB7oXhlESE6OMLHADY+c7e9wk2JyujCXUSTj7CIlPHi+FsryxFKCEbSF2+R oD780rRGqcHglxmXQwmw01wyXXV5pGy22n5J0rUvEzxXiZ8BIKKPMSxj1dcNRHv4XFrB4l AuQNjA61QAbHnZj3DajP8wBl7k0jzQDakIMMohXaYMNpTsez2AoivHOfFIctQbIs8XuxLN vkpgQWYrMmrLFgyUFok9vXhkjVgYy0GZimPO6OnuvSTr6Ra613jkSXdgtDy06g== 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 C34CD18A05; Fri, 11 Mar 2022 11:31:28 +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 22BBVS8V076635; Fri, 11 Mar 2022 11:31:28 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 22BBVSWe076634; Fri, 11 Mar 2022 11:31:28 GMT (envelope-from git) Date: Fri, 11 Mar 2022 11:31:28 GMT Message-Id: <202203111131.22BBVSWe076634@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Andrew Turner Subject: git: 2abeef730042 - main - 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: andrew X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2abeef73004238d49f781b12b89e003ceb048018 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646998289; 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=cpWo6F1ZwULAK8OhO3jufSKxOMsCC5zoT8TDk673KD4=; b=nt4bznvJ+9a7uVpa1ebWV/MJ4LXkuBvExhu00QlvLZGusT9khO0OE/V0EX+T1Mo/kN9yAM L2F5j+nq1FaXMQ6jia1ucTxx813B3XcWSdtsSUnSCfRNR/14AavJK+0GJhtYTdJEwG/J9g hNiTKK2unf/wjzuLd7nAdP55BWQr7uInA+5AFMRIZYjtaJMZZvez9671jAjBNOAM06YcbL U2+WePy61jteZbVslQ8m0arAfVEF237df+Q0R8qZ9RvuKzRSk4fsbOeOM7gLg+su9+UPmA tYxldCBmWuXKrCbeMHVBLW5B2pSDjteRh+HkK1URhjTjRMrnoyu74Q2kBFzmmQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1646998289; a=rsa-sha256; cv=none; b=xh4aks5ThgZcqHWxE2a0xhYTWfAt30KJ6Pc4ME8E7X+zKwb3BjmQnBRb6D5k81QQPKZ9st keJyKoF+G40pvFq2LqCMtHDGykeDALV+jHNiyYecNUhcm2c0Czt+X4Zps4XtrTjT/epNBC ZTaZxd+7Zcrtd/gTO7A6l1An6+8oKBq3O0pP12NWuEdTpYDfem+FCn1iBVP+PvnLjfGkGs 7ksn1r98OM6BJ2kzHFoO1eZneMcJXuJq7jAbRqC1HgKsTvkgJt+jDMhhAWEbTY7TGD9+RZ cZdMdthgRTyYDwAUvQSeXswWvIkLkbmWUm3XOJWdEhepp1CzNU1pNfco15Uw8g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=2abeef73004238d49f781b12b89e003ceb048018 commit 2abeef73004238d49f781b12b89e003ceb048018 Author: Andrew Turner AuthorDate: 2022-03-11 10:31:05 +0000 Commit: Andrew Turner CommitDate: 2022-03-11 11:21:09 +0000 Sort the M* and P* arm64 registers Sponsored by: Innovate UK --- 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 5d9172cd3d6b..4f9b60461a2f 100644 --- a/sys/arm64/include/armreg.h +++ b/sys/arm64/include/armreg.h @@ -908,6 +908,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 @@ -1094,147 +1235,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)