[PATCH 2/2] bsp/riscv: Add a section about running on QEMU

heshamelmatary at gmail.com heshamelmatary at gmail.com
Tue Oct 25 17:48:51 UTC 2022


From: Hesham Almatary <hesham.almatary at cl.cam.ac.uk>

---
 user/bsps/bsps-riscv.rst | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/user/bsps/bsps-riscv.rst b/user/bsps/bsps-riscv.rst
index 224506d..db7fd95 100644
--- a/user/bsps/bsps-riscv.rst
+++ b/user/bsps/bsps-riscv.rst
@@ -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
 -----------------------
 
-- 
2.25.1



More information about the devel mailing list