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

SFENCE.VMA instruction privilege #1798

Open
Seo-sang opened this issue Sep 9, 2024 · 1 comment
Open

SFENCE.VMA instruction privilege #1798

Seo-sang opened this issue Sep 9, 2024 · 1 comment

Comments

@Seo-sang
Copy link

Seo-sang commented Sep 9, 2024

Can sfence.vma instruction be executed in supervisor mode?
I think both 'S' and 'M' modes are possible, but spike doesn't support it in 'M' mode.
Also, it doesn't work even though I changed the code as below in sfence_vma.h file.
require_extension('S') -> require_extension('M')
Is there any solution to support sfence.vma in 'M' mode?

Thank you.

@aswaterman
Copy link
Collaborator

Spike does allow SFENCE.VMA to be executed in M-mode, but only if the implementation supports S-mode. This is the correct behavior.

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