summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHesham Almatary <heshamelmatary@gmail.com>2022-10-25 16:01:12 +0100
committerHesham Almatary <heshamelmatary@gmail.com>2022-10-31 11:39:28 +0000
commit9d0f45470eb2c16cfcfd4e7950a374d22797568b (patch)
tree30273ec4294c430c1abb2363454511ca949ce20c
parentbsps/riscv: Remove inaccurate statement about reliance on a boot loader (diff)
downloadrtems-docs-9d0f45470eb2c16cfcfd4e7950a374d22797568b.tar.bz2
bsp/riscv: Add a section about running on QEMU
-rw-r--r--user/bsps/bsps-riscv.rst17
1 files changed, 16 insertions, 1 deletions
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
-----------------------