Commit 6984237c authored by Ha Duong Quang's avatar Ha Duong Quang Committed by Dan Kalowsky
Browse files

arch: arm: core: cortex_a_r: enable the VFP unit on boot for FPU_SHARING



The FPU is already disabled by the z_arm_svc function when the first
thread starts. Therefore, disabling the FPU at boot is unnecessary for
lazy FPU; instead, it must be enabled to handle floating-point instructions
before the lazy FPU works.

Signed-off-by: default avatarHa Duong Quang <ha.duongquang@nxp.com>
parent 8bd4f244
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -62,7 +62,6 @@ static inline void z_arm_floating_point_init(void)
	__set_CPACR(reg_val);
	barrier_isync_fence_full();

#if !defined(CONFIG_FPU_SHARING)
	/*
	 * FPEXC: Floating-Point Exception Control register
	 * comp. ARM Architecture Reference Manual, ARMv7-A and ARMv7-R edition,
@@ -84,7 +83,6 @@ static inline void z_arm_floating_point_init(void)
	 */
	__set_FPEXC(FPEXC_EN);
#endif
#endif
}

#endif /* CONFIG_CPU_HAS_FPU */