pussuw commented on code in PR #9103:
URL: https://github.com/apache/nuttx/pull/9103#discussion_r1209746325
##########
arch/risc-v/src/common/riscv_macros.S:
##########
@@ -106,11 +106,6 @@
and t2, t0, t1
li t1, MSTATUS_FS_DIRTY
bne t2, t1, 1f
Review Comment:
In fact, the only line of code that needs to be changed for this patch to
work correctly, is this bne -> blt
That achieves what we need for now:
save FPU always when status is not in {OFF, INIT}
restore FPU always when status is in {DIRTY, CLEAN}
--
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]