target/loongarch: Add system emulation introduction
[qemu/ar7.git] / docs / system / loongarch / loongson3.rst
blobfa3acd01c06d34f829199b8c269f4bac4b189342
1 :orphan:
3 ==========================================
4 loongson3 virt generic platform (``virt``)
5 ==========================================
7 The ``virt`` machine use gpex host bridge, and there are some
8 emulated devices on virt board, such as loongson7a RTC device,
9 IOAPIC device, ACPI device and so on.
11 Supported devices
12 -----------------
14 The ``virt`` machine supports:
15 - Gpex host bridge
16 - Ls7a RTC device
17 - Ls7a IOAPIC device
18 - Ls7a ACPI device
19 - Fw_cfg device
20 - PCI/PCIe devices
21 - Memory device
22 - CPU device. Type: Loongson-3A5000.
24 CPU and machine Type
25 --------------------
27 The ``qemu-system-loongarch64`` provides emulation for virt
28 machine. You can specify the machine type ``virt`` and
29 cpu type ``Loongson-3A5000``.
31 Boot options
32 ------------
34 Now the ``virt`` machine can run test program in ELF format and the
35 method of compiling is in target/loongarch/README.
37 .. code-block:: bash
39   $ qemu-system-loongarch64 -machine virt -m 4G -cpu Loongson-3A5000 \
40       -smp 1 -kernel hello -monitor none -display none \
41       -chardev file,path=hello.out,id=output -serial chardev:output