Open sergeysmolov opened 6 years ago
We could implement the -bios
option so that you can specify the firmware that is loaded, rather than use -kernel
.
Otherwise you can make your own board for your own use. e.g. copy which ever board you are using and modify the reset vector i.e. add an option to load the firmware from a file. This is essentially similar to implementing the -bios
option.
We could implement the -bios option so that you can specify the firmware that is loaded, rather than use -kernel.
That would be great.
I run a bare metal RISC-V assembler program on QEMU. I use the following command:
The simulation starts with the following instructions:
As I understand, these instructions (preamble) are stored at 'reset_vec' array (/hw/riscv/spike.c) and they're executed at the very beginning.
Is it possible to avoid their emulation and run my program only? When I've used QEMU for Aarch64 programs simulation, it was possible to skip this preamble by using '-bios' option instead of '-kernel'.