riscv/qemu-rv: revise PROTECTED mode

This revises PROTECTED build for qemu-rv mainly to avoid hard-coded
addresses in linker scripts. It also added rv32 support, cleaned up
config `pnsh64` and added config `pnsh`.

Signed-off-by: Yanfeng Liu <yfliu2008@qq.com>
This commit is contained in:
Yanfeng Liu
2024-08-03 11:25:20 +08:00
committed by Xiang Xiao
parent ba4769d412
commit 5848a8e77c
12 changed files with 213 additions and 90 deletions
@@ -90,7 +90,7 @@ If testing with S-mode build, remove the ``-bios none`` option. S-mode build
requires SBI to function properly.
For BUILD_PROTECTED the user-space binary must also be loaded, which can be
done by adding ``-device loader,file=./nuttx_user.elf`` to the command line
done by adding ``-device loader,file=./nuttx_user`` to the command line
arguments.
citest