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

Extend access type to cache accesses #787

Open
Timmmm opened this issue Mar 11, 2025 · 0 comments
Open

Extend access type to cache accesses #787

Timmmm opened this issue Mar 11, 2025 · 0 comments

Comments

@Timmmm
Copy link
Collaborator

Timmmm commented Mar 11, 2025

For CHERI we need to extend AccessType to have entries for cache accesses. Here's what we have:

enum CacheAccessType = {
  CleanFlush,
  Inval,
  Zero,
}

union AccessType ('a : Type) = {
  Read            : 'a,
  Write           : 'a,
  // (Read, Write)
  ReadWrite       : ('a, 'a),
  Execute         : unit,
  Cache           : CacheAccessType,
}

Also the access type for Zicbom needs to be based on the original type of access, not what it is changed to by menvcfg[CBIE] etc.

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

1 participant