From nobody Wed Feb 21 18:55:50 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 4Tg586337Wz5B8FQ; Wed, 21 Feb 2024 18:55:50 +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 4Tg5862TLhz3xXD; Wed, 21 Feb 2024 18:55:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708541750; 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=CMHLT4eJFYkj/PeDIG0zRvsNg8ejY5ZY3w7Zvymn7Kk=; b=TqbU701OrU3iischBsA4ibdGaGNET2llz6zFxsjlfgZ7lEiI7Ptzh0rj5nAFSeccmiYMH+ 9oOxZZ7eCtiCc/xDp+8s5Ys8hRy7eS7ssKK8JNEEdwSgS8zCHstwuwUIftgdWHvLVpYP4g vx3k8YVNo/+/SDb9NHowx2uREgwgJwB0poebuziQZ88MAFhmGhWT0oxMH8oqFb1mW8W6d+ 9ieCuWnh9Gd2UlSbYsU5QQk00sfB+n5xUghLBiZQjkCkwXZxRNrnViHGsIJMBXivOBVD+4 0ySKioXAiU9ZUHMEfC49do/3H3kyXu4p41yDtK6zO3hse5o7wZAEokdrqe7E4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708541750; 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=CMHLT4eJFYkj/PeDIG0zRvsNg8ejY5ZY3w7Zvymn7Kk=; b=cVVbVnTXkHqnDiZbIKW9Ti6oSHavwyxYm9128dAgG96+BiJqJbblXtMI9+k5DAE0jDnefL x3CXFNoCKaFR/c22lyktJfDvomqJTJ06XDNOiN1X6odAx/r4+NGoysf3pa3+utZN6vRn2J xkQRf/54JoIz3vCpY4cjpBWVIqz4SAyRlaWlkTChwDWvqZcSqStQpVPKpUAW59sdGHXP8m BoNg0wcmbQK0hdPkzYstFx8O1gU0vXOcTe/0UZ0pzj+rZyQ1LbOSXrq1bcjgia2D6pfc5K i2ZfvAfW62AjbRnuJwvT3RwqwjId03qxGDGt3dzmYOrYkZhsf4pOe9sl1VMnfw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708541750; a=rsa-sha256; cv=none; b=wT1nQSH01CrR6oor9m/F3zJpcd1DSBSfcNZCQiZ/cKcYYsbPEjjno6OAm6KlfpESjPAqQk J2n+dvL86B9E+SKAr8OwA/t2Iy23n7r8sPk9b+NkLY4dWZ5X2QbOh8AS+rC8w8O2SfOFVP QH8wm+s5vnrzrrkRXIUIGoTu7rwwjzL4phAR+56ooTLWzGBHjbA889BiMkkNVC7xD4tkJ3 EA6gK8NXfxZWuJz4RBVaO/xLvuHjnhPgG4efS/anyDrfE2QkIpVmQyeWUk99Zi9mDoOBNR tlC59ZQKtPgJ1kxs+RIKR3oQayIQlWYvB7dzF8CspWTRfKSdBa/mb0CcARP8hg== 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 4Tg5861HJHz1F6m; Wed, 21 Feb 2024 18:55:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41LIto4N033435; Wed, 21 Feb 2024 18:55:50 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41LItoqE033432; Wed, 21 Feb 2024 18:55:50 GMT (envelope-from git) Date: Wed, 21 Feb 2024 18:55:50 GMT Message-Id: <202402211855.41LItoqE033432@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: 09ac9cf8971a - main - 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: 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: 09ac9cf8971a0709bb8d5a3a703cd3dbff882b6f Auto-Submitted: auto-generated The branch main has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=09ac9cf8971a0709bb8d5a3a703cd3dbff882b6f commit 09ac9cf8971a0709bb8d5a3a703cd3dbff882b6f Author: Andrew Turner AuthorDate: 2024-02-21 18:10:19 +0000 Commit: Andrew Turner CommitDate: 2024-02-21 18:55:32 +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. --- 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 46d13d253746..41ab55a49c76 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)