You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/03/28 19:27:09 UTC

[GitHub] [incubator-nuttx] gustavonihei commented on a change in pull request #5878: arch/risc-v: Use riscv_fpuconfig to enable FPU

gustavonihei commented on a change in pull request #5878:
URL: https://github.com/apache/incubator-nuttx/pull/5878#discussion_r836774192



##########
File path: arch/risc-v/src/c906/c906_start.c
##########
@@ -73,6 +73,10 @@ void __c906_start(uint32_t mhartid)
   const uint32_t *src;
   uint32_t *dest;
 
+  /* Configure FPU */
+
+  riscv_fpuconfig();

Review comment:
       It seems FPU is already enabled here:
   https://github.com/apache/incubator-nuttx/blob/master/arch/risc-v/src/c906/c906_head.S#L55-L60
   
   **MPFS** seems to also enable the FPU prior to jumping to C code:
   https://github.com/apache/incubator-nuttx/blob/master/arch/risc-v/src/mpfs/mpfs_head.S#L119-L131




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org