-
Notifications
You must be signed in to change notification settings - Fork 167
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
RFC: Platform-specific exception codes #146
Labels
Comments
Hi! I don't think we have plans to add this functionality right now. If you think this feature is useful, feel free to open a PR/RFC and we can discuss it further :) In my opinion, we should look at how |
romancardenas
changed the title
Platform specific extensions
RFC: Platform-specific exception codes
May 4, 2024
While working on #200, I've been thinking on how to provide this functionality. I propose the following approach:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Are there any plans to provide support for platform specific extensions in
riscv
crate?Reading through RISC-V Privileged Architectures specification I see that there are cases where, for example, a
3.1.15 Machine Cause Register
has exception codes allocated for platform and custom use.Was wondering if it would be possible to extend enums
Interrupt
andException
from outside of theriscv
crate itself.The best I could came up thus far is adding "PlatformSpecific1-32" fields to
Interrupt
and creating a user-defined enumPlatformInterrupt
with conversion between (TryFrom<Interrupt> for PlaftormInterrupt
) where applicable. (same goes forException
)The text was updated successfully, but these errors were encountered: