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

Enable RoCC instructions after context switches #3

Open
wants to merge 1 commit into
base: firesim-v57
Choose a base branch
from

Conversation

abejgonzalez
Copy link

When using pthreads with cores having RoCC instructions, context switches clear the XS bit causing illegal instruction program failures. This fix forces the XS bit to be set whenever a context switch is done to avoid this issue.

@abejgonzalez
Copy link
Author

Unfortunately, I can't recreate this in Spike right now. I'll keep this PR open in the short-term as a reminder that this might happen (and still needs investigating).

@zhejianguk
Copy link

zhejianguk commented Feb 6, 2023

Hi,

Thank you very much to identify this hidden bug. However, I think your update does not fix the issue, as my test still fails in the ROCC instructions with P-Thread.

I did many tests, and pretty sure that there are some ROCC instructions are missed (at least missed the XS bits).

I am using the BOOM version: ad64c5419151e5e886daee7084d8399713b46b4b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants