[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [UNIKRAFT PATCH v4 3/7] plat/kvm: arm64: Enable the fp/simd at the starting point
Reviewed-by: Sharan Santhanam <sharan.santhanam@xxxxxxxxx> On 4/7/20 9:13 AM, Jia He wrote: Write the sys reg to enable the fp/simd feature, otherwise it will cause floating point/simd exception when touching q0-q31. Signed-off-by: Jia He <justin.he@xxxxxxx> --- plat/kvm/arm/entry64.S | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/plat/kvm/arm/entry64.S b/plat/kvm/arm/entry64.S index 359a310..c4de334 100644 --- a/plat/kvm/arm/entry64.S +++ b/plat/kvm/arm/entry64.S @@ -36,6 +36,7 @@ #include <kvm-arm/mm.h> #include <arm/cpu_defs.h> #include <uk/plat/common/sections.h> +#include <uk/config.h>.global page_table_size.data @@ -49,6 +50,13 @@ page_table_size:.textENTRY(_libkvmplat_entry) +#ifdef CONFIG_FPSIMD + /* Enable fp/simd support */ + ldr x0, =(3 << 20) + msr cpacr_el1, x0 + isb +#endif + /* Calculate the image size */ ldr x25, =_dtb ldr x26, =_end
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |