I wanted to boot into machine mode on qemu
using the command : qemu-system-riscv64 -machine virt -bios boot. But when I tried to use pmp it did nothing, I then tested in which mode I was and found out I was not in machine mode using the following statement :
# Extract the MPP field (bits 12 and 11 of mstatus)
srli a1, a0, 11
andi a1, a1, 0x3
# Check if MPP is 3 (Machine mode)
li a2, 3
beq a1, a2, machine_mode
Does anyone know how to boot qemu into machine-mode?
Thanks in advance.