arm64: Don't trap SVE to EL2

As with floating point instructions don't trap SVE instructions to the
hypervisor. This lets us handle then in the kernel.

Reviewed by:	imp (earlier version)
Sponsored by:	Arm Ltd
Differential Revision:	https://reviews.freebsd.org/D43303

(cherry picked from commit fe5ed2496e44aec018a6215175bba225b20d81fd)
This commit is contained in:
Andrew Turner 2024-09-27 14:41:08 +01:00
parent f7caa6fb74
commit a16f10ab0a

View file

@ -50,7 +50,7 @@
/* CPTR_EL2 - Architecture feature trap register */
/* Valid if HCR_EL2.E2H == 0 */
#define CPTR_RES0 0x7fefc800
#define CPTR_RES1 0x000033ff
#define CPTR_RES1 0x000032ff
#define CPTR_TFP 0x00000400
/* Valid if HCR_EL2.E2H == 1 */
#define CPTR_FPEN 0x00300000