How to run a function in machine mode risv
Hi I was trying to run a function called main in machine mode in riscv. But I couldn’t figure out how to correctly use ecall. Does anyone know how I can modify this bootloader so it calls main into machine mode?
boot qemu into riscv machine mode
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 :