You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 13, 2019. It is now read-only.
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'.
The text was updated successfully, but these errors were encountered:
sergeysmolov
changed the title
How to skip reset_vec execution befor user program
How to skip reset_vec execution befor user program?
Apr 12, 2018
sergeysmolov
changed the title
How to skip reset_vec execution befor user program?
How to skip reset_vec execution before user program?
Apr 12, 2018
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.
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'.
The text was updated successfully, but these errors were encountered: