riscv-non-isa / riscv-semihosting

https://lf-riscv.atlassian.net/browse/RVS-2673
Creative Commons Attribution Share Alike 4.0 International
27 stars 8 forks source link

Relax an overly-strict requirement for systems with paging #6

Closed jrtc27 closed 1 year ago

jrtc27 commented 2 years ago

Just because a system has paging does not mean it is currently in use. Running a simple RTOS on a full Sv39-supporting core that doesn't enable it is no different to running on one without Sv39 support, and crossing a page boundary is totally fine. Similarly, firmware running in M-mode on a Unix-capable core with a full OS running in S-mode with paging can still not care about paging, since the firmware's own program counter is not subject to translation.