SunJun8 commented on PR #9103:
URL: https://github.com/apache/nuttx/pull/9103#issuecomment-1533963699

   > Hi, the current implementation is done as per RISC-V privileged spec. 
v1.10 table 3.4. and it was done when the FPU save/restore was done only when a 
context switch actually happened.
   > 
   > So is the current problem because the lazy FPU save/restore is not done 
only when doing context switch ? As I said I'm having a hard time understanding 
what the problem is.
   
   Current issue is that save and load are not synchronized. Whenever FS is 
dirty, FLOAD FPU will be performed on each context switch. At this point, the 
location of REG_F0→REG_FCSR in the stack may be incorrect.


-- 
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