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

riscv: Support more fence variants #193

Open
jsgf opened this issue Mar 14, 2024 · 1 comment
Open

riscv: Support more fence variants #193

jsgf opened this issue Mar 14, 2024 · 1 comment

Comments

@jsgf
Copy link
Contributor

jsgf commented Mar 14, 2024

The default fence instruction with no parameters is the strongest form of barrier. But it also takes an optional set of flags to give fine-grained control over exactly what operations the fence is a barrier for, and in which direction.

I see two design choices here:

  • just let the caller specify an arbitrary set of flags (somehow), or
  • have a set of canned variants for the common cases (like Linux's rmb/wmb/...)

(These aren't exclusive of course.)

Thoughts?

cc @dreiss

@romancardenas
Copy link
Contributor

Hi! I need to think more about this, but currently, I think that riscv should support common cases. For very specific scenarios, developers could always use inline assembly.

@romancardenas romancardenas changed the title Support more fence variants riscv: Support more fence variants Mar 30, 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