From nobody Fri Dec 01 18:35:19 2023 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 4ShhZH6gPNz52wmX; Fri, 1 Dec 2023 18:35:19 +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 4ShhZH65X3z4F0h; Fri, 1 Dec 2023 18:35:19 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1701455719; 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=tOPyuP7XybVthJNrhbrVFRBj2xAjewsf2Ugefi4VAyY=; b=SakBuYu95gfH5ufYsdQ72EYQS2LiU97eZQ5G/4/U0JBMtKbi6d8Jx61rH7BhSbQvaz8Zd4 qjnhqdANPnMrevSHewNPA1VJ5mGvvgoOMHjPLWDzgFBIMy4bNgGkWyUZ7u5xYhj7DQxsWi aV5D1Wcff6u7dtXG9P3ORjB3wnbPqJuZ2vHZe+XdMFEq19vc9MO8GT8tas8NDDaoCRbRKY GkdsMb3jqanr+nMor5ejiDis5IB4il+yxk1W2OxkZFafIiNVXo9HO1RKPmCbRSyKEtkLGT pqmmWxvll9BSiHflnyFfX6fHcOZ6Z5Vjv8ug51+tYFuiXJlb+cKECpSfyDnRxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1701455719; 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=tOPyuP7XybVthJNrhbrVFRBj2xAjewsf2Ugefi4VAyY=; b=cYy7J6uTYhjrItMmIyr7Ere01FsYs5scoAYawnbgjSH6V6W3yesslQZeA2nRZhGcoXFH26 e0GC1GmuzMpjtUWWDCgTvgrxdvKQu35fEpyhQn4qioTWLZYFki2ZTd/ivjh0YzNZhLzH2u sdXJsqMClnUogb5lcVLslos+WBKC/mcIl0323ykkLujKA1kL0QHgsRQrGHmLpbDtD1F0V8 XOFgkNIFZPtknSi1QQy0pOLysVlJ+aehOJwNNe1QNjK91UbO4D3Mi6La6QBjV/ZsSQIv/C qiwf4chCkzHqm39c1MEm57tGFFtLd9SvwQaTVsE3JA2RCEHAX7gqwzW0mhACzg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1701455719; a=rsa-sha256; cv=none; b=p4LQbyxXSOHO6jvBjP5YU7Q7q5R2g1sy2iaj40aBS73Qf9bzHuhBXRrNZUxu/dnOGje/04 cVycwmolv+eygqfQJ1JbPKGnRkIimHLMbk+4b4dql9YtMSSCLBbP57slrk7xerWHUg0SUy 0gKQEdYXcLKops03XVyxJncWw6ri/d+JrBg50aiOMpk7UYbFEZ058FJBFVGy1KgWQICN0T ISaM3rZxYI4GbncDNzFRXitcULZG9T9mfyJkHXFNLIdJcMHoDiTJvzQ9FJwRtFPf9Q7hRR dXjX7QB0o7GWICT/Ktj1JKsWOkdGPZ3fckJs7eddRM7ZOZqtfiaQKKvhWkQA4g== 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 4ShhZH56lVzkdy; Fri, 1 Dec 2023 18:35:19 +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 3B1IZJNV063368; Fri, 1 Dec 2023 18:35:19 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3B1IZJLF063365; Fri, 1 Dec 2023 18:35:19 GMT (envelope-from git) Date: Fri, 1 Dec 2023 18:35:19 GMT Message-Id: <202312011835.3B1IZJLF063365@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: 4f12883c360d - main - arm64: Add register definitions for MDCR_EL2 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: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 4f12883c360dbb03562f11713e711e3a3a330a0f Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=4f12883c360dbb03562f11713e711e3a3a330a0f commit 4f12883c360dbb03562f11713e711e3a3a330a0f Author: Mark Johnston AuthorDate: 2023-12-01 18:28:58 +0000 Commit: Mark Johnston CommitDate: 2023-12-01 18:31:13 +0000 arm64: Add register definitions for MDCR_EL2 This is needed to support the bhyve gdb stub implementation on arm64. Reviewed by: andrew MFC after: 1 week Sponsored by: Innovate UK Differential Revision: https://reviews.freebsd.org/D42867 --- sys/arm64/include/hypervisor.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/sys/arm64/include/hypervisor.h b/sys/arm64/include/hypervisor.h index 109169601c83..589d6e9cbdbe 100644 --- a/sys/arm64/include/hypervisor.h +++ b/sys/arm64/include/hypervisor.h @@ -232,4 +232,22 @@ /* Assumed to be 0 by locore.S */ #define VTTBR_HOST 0x0000000000000000 +/* MDCR_EL2 - Hyp Debug Control Register */ +#define MDCR_EL2_HPMN_MASK 0x1f +#define MDCR_EL2_HPMN_SHIFT 0 +#define MDCR_EL2_TPMCR_SHIFT 5 +#define MDCR_EL2_TPMCR (0x1UL << MDCR_EL2_TPMCR_SHIFT) +#define MDCR_EL2_TPM_SHIFT 6 +#define MDCR_EL2_TPM (0x1UL << MDCR_EL2_TPM_SHIFT) +#define MDCR_EL2_HPME_SHIFT 7 +#define MDCR_EL2_HPME (0x1UL << MDCR_EL2_HPME_SHIFT) +#define MDCR_EL2_TDE_SHIFT 8 +#define MDCR_EL2_TDE (0x1UL << MDCR_EL2_TDE_SHIFT) +#define MDCR_EL2_TDA_SHIFT 9 +#define MDCR_EL2_TDA (0x1UL << MDCR_EL2_TDA_SHIFT) +#define MDCR_EL2_TDOSA_SHIFT 10 +#define MDCR_EL2_TDOSA (0x1UL << MDCR_EL2_TDOSA_SHIFT) +#define MDCR_EL2_TDRA_SHIFT 11 +#define MDCR_EL2_TDRA (0x1UL << MDCR_EL2_TDRA_SHIFT) + #endif /* !_MACHINE_HYPERVISOR_H_ */