Skip to content
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

FPU support RISCV-64 #389

Open
Alexbruliau opened this issue May 29, 2024 · 1 comment
Open

FPU support RISCV-64 #389

Alexbruliau opened this issue May 29, 2024 · 1 comment
Labels
bug Something isn't working hardware New hardware or architecture support request

Comments

@Alexbruliau
Copy link

Describe the bug
FPU is deactivated inside tx_thread_schedule.S v6.4.1

image

Is it the correct behavior ?
I would expect the FS bit from the mstatus not to be reset to 0. Otherwise it will cause a trap if you try to access a FP register afterwards.

@Alexbruliau Alexbruliau added bug Something isn't working hardware New hardware or architecture support request labels May 29, 2024
@xuzihan351
Copy link

Oops, I had modified there as follow, and it work well:
#ifdef __riscv_flen
li t0, 0x3880 # Prepare MPIP
#else
li t0, 0x1880 # Prepare MPIP
#endif

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working hardware New hardware or architecture support request
Projects
None yet
Development

No branches or pull requests

2 participants