On 04/05/2024 14.28, Nicholas Piggin wrote:
The biggest difficulty for user mode is MMU support. Otherwise it is a simple matter of setting and clearing MSR[PR] with rfid and sc respectively. Some common harness operations will fail in usermode, so some workarounds are reqiured (e.g., puts() can't be used directly). A usermode privileged instruction interrupt test is added. Signed-off-by: Nicholas Piggin <npiggin@xxxxxxxxx> ---
Reviewed-by: Thomas Huth <thuth@xxxxxxxxxx>