Closed
Description
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
and Exception
from outside of the riscv
crate itself.
The best I could came up thus far is adding "PlatformSpecific1-32" fields to Interrupt
and creating a user-defined enum PlatformInterrupt
with conversion between (TryFrom<Interrupt> for PlaftormInterrupt
) where applicable. (same goes for Exception
)