From 9d0f45470eb2c16cfcfd4e7950a374d22797568b Mon Sep 17 00:00:00 2001 From: Hesham Almatary Date: Tue, 25 Oct 2022 16:01:12 +0100 Subject: bsp/riscv: Add a section about running on QEMU --- user/bsps/bsps-riscv.rst | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/user/bsps/bsps-riscv.rst b/user/bsps/bsps-riscv.rst index 224506d..d8491ee 100644 --- a/user/bsps/bsps-riscv.rst +++ b/user/bsps/bsps-riscv.rst @@ -45,7 +45,7 @@ ISA with ABI and code model choice. 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 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 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 ----------------------- -- cgit v1.2.3