git: 9f3d15fda29a - main - arm64: Add CPTR_E2H_TTA

From: Andrew Turner <andrew_at_FreeBSD.org>
Date: Wed, 11 Sep 2024 10:42:05 UTC
The branch main has been updated by andrew:

URL: https://cgit.FreeBSD.org/src/commit/?id=9f3d15fda29a9d510754daed8e6158c637108b42

commit 9f3d15fda29a9d510754daed8e6158c637108b42
Author:     Andrew Turner <andrew@FreeBSD.org>
AuthorDate: 2024-09-11 09:38:22 +0000
Commit:     Andrew Turner <andrew@FreeBSD.org>
CommitDate: 2024-09-11 10:25:09 +0000

    arm64: Add CPTR_E2H_TTA
    
    The TTA field moves depending on the HCR_EL2.E2H field. Add a macro to
    hold the E2H == 1 case.
    
    Sponsored by:   Arm Ltd
    Differential Revision:  https://reviews.freebsd.org/D46515
---
 sys/arm64/include/hypervisor.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sys/arm64/include/hypervisor.h b/sys/arm64/include/hypervisor.h
index ba18f8077467..738eeca66ffe 100644
--- a/sys/arm64/include/hypervisor.h
+++ b/sys/arm64/include/hypervisor.h
@@ -56,10 +56,11 @@
 #define	CPTR_RES0		0x7fefc800
 #define	CPTR_RES1		0x000033ff
 #define	CPTR_TFP		0x00000400
+#define	CPTR_TTA		0x00100000
 /* Valid if HCR_EL2.E2H == 1 */
 #define	CPTR_E2H_FPEN		0x00300000
+#define	CPTR_E2H_TTA		0x10000000
 /* Unconditionally valid */
-#define	CPTR_TTA		0x00100000
 #define	CPTR_TCPAC		0x80000000
 
 /* HCR_EL2 - Hypervisor Config Register */