GUIDINGLI commented on code in PR #13520:
URL: https://github.com/apache/nuttx/pull/13520#discussion_r1777952310


##########
arch/arm64/src/common/arm64_arch.h:
##########
@@ -299,6 +299,9 @@ struct regs_context
   uint64_t  spsr;
   uint64_t  sp_el0;
   uint64_t  exe_depth;
+#ifdef CONFIG_ARCH_FPU

Review Comment:
   The removable of FPU trap reason:
   1. The FPU trap logic is not stable in some SMP situation (HERE haven't the 
detail analysis)
   2. Make the logic Complex and different to read.
   3. The most important reason: it has almost no benefit for the performance, 
because the compiler will optimize the code with float/double instructions when 
use the option -O3 (always be). Even the printf/syslog will use use the FPU, so 
the FPU is used too often and almost each context switch.
   Or, you must use -mgeneral-regs-only to limit the FPU registers usage, that 
will harmful for the speed.
   5. How about use the FPU registers in the IRQ/SVC ISR, maybe there are 
hidden bugs ?
   



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to