-
Notifications
You must be signed in to change notification settings - Fork 817
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RISCV fpu context save and restore according to the MSTATUS.FS #315
Comments
This is definitely possible... tx_thread_schedule.s, tx_thread_system_return.s, tx_thread_context_save.s, and tx_thread_context_restore.s are the likely places for the enhanced logic. |
Did you find out any issues related to FPU when porting to RISC-V ? |
No issues found at the moment |
Not even this kind of #389 ? |
That is a bug, and I had fix it locally. |
thanks you targeted a mpfs250 board? |
Not that. I am targeting HPMicro series boards |
RISCV has a FS filed in MSTATUS, it indicates the status of the fpu. It can be initial, clean, dirty of off. When dealing with the fpu context save and restore, the FS filed may help to increase the preformence of the context switching. When the MSTATUS.FS is clean or off, the context saving and restoring can be skip.
Is it possible to implement this feature in the future?
The text was updated successfully, but these errors were encountered: