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

[Bug Report] SD bit in mstatus doesn't update when FS=11 #75

Open
zhangkanqi opened this issue Jan 23, 2024 · 3 comments
Open

[Bug Report] SD bit in mstatus doesn't update when FS=11 #75

zhangkanqi opened this issue Jan 23, 2024 · 3 comments

Comments

@zhangkanqi
Copy link

zhangkanqi commented Jan 23, 2024

Hi,

After runing instruction csrs mstatus, a0(a0=0x00007800) in rsd, mstatus is set to 0x00007800, not the expected value 0x80007800.

According to the privilege specification of RISC-V, if FS=11, SD should be set to 1.

image

So I wonder is this a bug in rsd?

@zhangkanqi zhangkanqi changed the title SD bit in mstatus doesn't update when FS=11 [Bug Report] SD bit in mstatus doesn't update when FS=11 Jan 28, 2024
@shioyadan
Copy link
Member

Your point seems correct, and we forgot to include the FS and XS bits in the floating point extension implementation. We will implement the feature.

I'm sorry for my late response. I would like to mention that I work at a university in Japan, and currently, we are in one of the busiest periods of the year due to many important events, such as the thesis defense and some important examinations. This has significantly limited my time to check everything...

@zhangkanqi
Copy link
Author

It's not late at all. Thank you for taking the time to confirm and reply.
Btw, Happy Chinese New Year~

@shioyadan
Copy link
Member

Currently, I do not have enough time to fix this issue. To ensure it is not forgotten, I have reopened it. Once the issue is resolved, I will close it again. Thank you!

@shioyadan shioyadan reopened this Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants