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: Ha Duong Quang <ha.duongquang@nxp.com>
This commit is contained in:
parent
8bd4f244b0
commit
6984237c06
1 changed files with 0 additions and 2 deletions
|
@ -62,7 +62,6 @@ static inline void z_arm_floating_point_init(void)
|
||||||
__set_CPACR(reg_val);
|
__set_CPACR(reg_val);
|
||||||
barrier_isync_fence_full();
|
barrier_isync_fence_full();
|
||||||
|
|
||||||
#if !defined(CONFIG_FPU_SHARING)
|
|
||||||
/*
|
/*
|
||||||
* FPEXC: Floating-Point Exception Control register
|
* FPEXC: Floating-Point Exception Control register
|
||||||
* comp. ARM Architecture Reference Manual, ARMv7-A and ARMv7-R edition,
|
* 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);
|
__set_FPEXC(FPEXC_EN);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* CONFIG_CPU_HAS_FPU */
|
#endif /* CONFIG_CPU_HAS_FPU */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue