bsp/riscv: Add a section about running on QEMU

This commit is contained in:
Hesham Almatary 2022-10-25 16:01:12 +01:00
parent c234a7bb2e
commit 9d0f45470e

View File

@ -45,7 +45,7 @@ ISA with ABI and code model choice.
The BSP must be started im machine mode. The BSP must be started im machine mode.
The reference platform for this BSP is the Qemu `virt` machine. The reference platform for this BSP is the QEMU `virt` machine.
The reference platform for the mpfs64imafdc BSP variant is the Microchip The reference platform for the mpfs64imafdc BSP variant is the Microchip
PolarFire SoC Icicle Kit. PolarFire SoC Icicle Kit.
@ -141,6 +141,21 @@ They are initialized according to the device tree. The console driver does not
configure the pins or peripheral clocks. The console device is selected configure the pins or peripheral clocks. The console device is selected
according to the device tree "/chosen/stdout-path" property value. according to the device tree "/chosen/stdout-path" property value.
QEMU
----
All of the BSP variants that start with rv can be run on QEMU's virt machine.
For instance, to run the ``rv64imafdc_medany`` BSP with the following
"config.ini" file:
.. code-block:: none
[riscv/rv64imafdc_medany]
Run the following QEMU command:
.. code-block:: shell
$ qemu-system-riscv64 -M virt -nographic -bios $RTEMS_EXE
Microchip PolarFire SoC Microchip PolarFire SoC
----------------------- -----------------------