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

Bits representation #19

Open
gagachang opened this issue Jan 22, 2025 · 0 comments
Open

Bits representation #19

gagachang opened this issue Jan 22, 2025 · 0 comments

Comments

@gagachang
Copy link

Current spec. uses bit {bit start position}:{bit length} to represent a bit field.
I.e., The Zimte extension adds the MTE_MODE field (bit 34:2) to mseccfg.

Suggest to make the bit representation be consistent with the privileged spec.
I.e., Privileged spec uses bit {bit end position}:{bit start position} or bit {bit end position}-{bit start position}

Examples from privileged spec:

  • The standard portions (bits 15:0) of registers sip and sie are formatted ...
  • Instruction fetch addresses and load and store effective addresses, which are 64 bits, must have bits 63–39 all equal to bit 38,
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