From nobody Mon Jul 15 12:37:55 2024 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 4WN1v74ts6z5QrWW; Mon, 15 Jul 2024 12:37:55 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WN1v73gbfz4Gq6; Mon, 15 Jul 2024 12:37:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1721047075; 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=iTo6fAGA2QIHjvoL5JF8FamVXGP+p8swtzoQOr0/dJo=; b=sFLdujlkZ+V+LAfCd338WvAcg+TybVBIDmaQrq3H7knbdTbdruIKFipb2/TZjToEq1PQPK IhRkxuo5o0jc1jYE1Qjx9AuAPqwkkxboy7dXc/smGynWwrMG9v5aHwXbBbxjYFAbnn7Vtw tgyRwEresXKuaItbDY19g7RvsKPgbgZzh8r9HH5ZhQEbpNQQWEfmSaFS/VC2agNpQ48xod pJGVnLcFxHwadkaiwGAmTpeg43oaOR/X1PrfWCcF4D5rivBOqqFJrYPdFLPyL/LhXowAHi TXpspLG0XXx15Wzt1T1utKsne1hLSdM0PA+IsZYtu+oFD6PZF6fakA0QiE0rpw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1721047075; a=rsa-sha256; cv=none; b=hZorZyFLdyVYM9u9RvOJ7/W7DCEYtWpwHffOlleM/f+iKBk2j48+eZHm44FEsXboXNtAOj KeO9Ln6o+On0tFq2Zq3ca1f1QSZE811iuCao6y0ojIvavYZL1hWlEtNeoPY6KtB5tEOUG+ vB8HjEIFYi6VwgRMWZLM/a6a/4dJKZltcVVDXW4e+UzCB7eePuErZk2pFrgWeMQzLc47Hk ESmSWJ1mjl0FGctnlFbre6OhabqLeZbqSYa57zU8SjHZT0Ai3/SwsW9LWbLsYIcDZB1wyt vzqSHKGQ1yxlFSj5ecQZYMZ7BdQ7376fIyzZ/tcNcgB21YNnKEYjtcrYIs4zHg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1721047075; 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=iTo6fAGA2QIHjvoL5JF8FamVXGP+p8swtzoQOr0/dJo=; b=CTaiX1tpzjFKWiCjYBNa4TnZIX3EcfZgO+PVjpiuFwG7KJ5lzQsTeB9znSo8iFBNLt10Op 6SzEczPlRJLVL0OfgzBKOFcYeJkWJifw1osfJLfhTokFk7Gq/s0o8F9Ljac5TybbjImBpZ LBp6qYEvIQWCRKTu3G1otHzym0N2FWmVpy1VxNfz54zlR7MxYlWFgEJZ1i9BGouv1GkI6e gsiPZGDAJdL7shTGwJZ/qjEj4QPeHjRNUQB4GdNHfqHYH6VC20va9IFOob7e0hniPkk5Ym n9RlHqxCBj427smpHqM4OpgEZVKAjHVe9VvV0obLQ77yffj1b/tBnXwtlBiaDQ== 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 4WN1v72gg7zt1M; Mon, 15 Jul 2024 12:37:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 46FCbtKc058707; Mon, 15 Jul 2024 12:37:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 46FCbtjw058704; Mon, 15 Jul 2024 12:37:55 GMT (envelope-from git) Date: Mon, 15 Jul 2024 12:37:55 GMT Message-Id: <202407151237.46FCbtjw058704@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Andrew Turner Subject: git: 0ea3e76c4bae - stable/14 - arm64: Add ISS_MSR_REG for ESR_ELx.ISS values 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-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/stable/14 X-Git-Reftype: branch X-Git-Commit: 0ea3e76c4baef06c344267209d45c778e2cab04d Auto-Submitted: auto-generated The branch stable/14 has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=0ea3e76c4baef06c344267209d45c778e2cab04d commit 0ea3e76c4baef06c344267209d45c778e2cab04d Author: Andrew Turner AuthorDate: 2024-02-21 18:10:19 +0000 Commit: Andrew Turner CommitDate: 2024-07-15 12:21:45 +0000 arm64: Add ISS_MSR_REG for ESR_ELx.ISS values Add a macro to get the ESR_ELx ISS value when we trap accessing a special register. (cherry picked from commit 09ac9cf8971a0709bb8d5a3a703cd3dbff882b6f) --- sys/arm64/include/armreg.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/arm64/include/armreg.h b/sys/arm64/include/armreg.h index f3af9edec4c4..6f9e109f4b70 100644 --- a/sys/arm64/include/armreg.h +++ b/sys/arm64/include/armreg.h @@ -365,6 +365,12 @@ #define ISS_MSR_REG_MASK \ (ISS_MSR_OP0_MASK | ISS_MSR_OP2_MASK | ISS_MSR_OP1_MASK | \ ISS_MSR_CRn_MASK | ISS_MSR_CRm_MASK) +#define ISS_MSR_REG(reg) \ + (((reg ## _op0) << ISS_MSR_OP0_SHIFT) | \ + ((reg ## _op1) << ISS_MSR_OP1_SHIFT) | \ + ((reg ## _CRn) << ISS_MSR_CRn_SHIFT) | \ + ((reg ## _CRm) << ISS_MSR_CRm_SHIFT) | \ + ((reg ## _op2) << ISS_MSR_OP2_SHIFT)) #define ISS_DATA_ISV_SHIFT 24 #define ISS_DATA_ISV (0x01 << ISS_DATA_ISV_SHIFT)