riscv-software-src / riscv-pk

RISC-V Proxy Kernel
Other
595 stars 308 forks source link

Support RVC program without requiring RVC pk #326

Closed caizixian closed 6 months ago

caizixian commented 6 months ago

A relevant issue is #297

Is there any reason to not support loading RVC ELF when the kernel is compiled with RVC? I'm guessing that as long as the underlying hart supports RVC, we should be able to load RVC binaries.

aswaterman commented 6 months ago

The trapping and emulation code is tailored to the implementation’s ISA. We have no plans to change this: things work fine (better, actually) if you compile pk for the actual hardware ISA. I recommend dealing with the inconvenience rather than trying to change it.