| 1 | .. _MIPS-System-emulator: |
| 2 | |
| 3 | MIPS System emulator |
| 4 | -------------------- |
| 5 | |
| 6 | Four executables cover simulation of 32 and 64-bit MIPS systems in both |
| 7 | endian options, ``qemu-system-mips``, ``qemu-system-mipsel`` |
| 8 | ``qemu-system-mips64`` and ``qemu-system-mips64el``. Five different |
| 9 | machine types are emulated: |
| 10 | |
| 11 | - The MIPS Malta prototype board \"malta\" |
| 12 | |
| 13 | - An ACER Pica \"pica61\". This machine needs the 64-bit emulator. |
| 14 | |
| 15 | - A MIPS Magnum R4000 machine \"magnum\". This machine needs the |
| 16 | 64-bit emulator. |
| 17 | |
| 18 | The Malta emulation supports the following devices: |
| 19 | |
| 20 | - Core board with MIPS 24Kf CPU and Galileo system controller |
| 21 | |
| 22 | - PIIX4 PCI/USB/SMbus controller |
| 23 | |
| 24 | - The Multi-I/O chip's serial device |
| 25 | |
| 26 | - PCI network cards (PCnet32 and others) |
| 27 | |
| 28 | - Malta FPGA serial device |
| 29 | |
| 30 | - Cirrus (default) or any other PCI VGA graphics card |
| 31 | |
| 32 | The Boston board emulation supports the following devices: |
| 33 | |
| 34 | - Xilinx FPGA, which includes a PCIe root port and an UART |
| 35 | |
| 36 | - Intel EG20T PCH connects the I/O peripherals, but only the SATA bus |
| 37 | is emulated |
| 38 | |
| 39 | The ACER Pica emulation supports: |
| 40 | |
| 41 | - MIPS R4000 CPU |
| 42 | |
| 43 | - PC-style IRQ and DMA controllers |
| 44 | |
| 45 | - PC Keyboard |
| 46 | |
| 47 | - IDE controller |
| 48 | |
| 49 | The MIPS Magnum R4000 emulation supports: |
| 50 | |
| 51 | - MIPS R4000 CPU |
| 52 | |
| 53 | - PC-style IRQ controller |
| 54 | |
| 55 | - PC Keyboard |
| 56 | |
| 57 | - SCSI controller |
| 58 | |
| 59 | - G364 framebuffer |
| 60 | |
| 61 | The Fuloong 2E emulation supports: |
| 62 | |
| 63 | - Loongson 2E CPU |
| 64 | |
| 65 | - Bonito64 system controller as North Bridge |
| 66 | |
| 67 | - VT82C686 chipset as South Bridge |
| 68 | |
| 69 | - RTL8139D as a network card chipset |
| 70 | |
| 71 | The Loongson-3 virtual platform emulation supports: |
| 72 | |
| 73 | - Loongson 3A CPU |
| 74 | |
| 75 | - LIOINTC as interrupt controller |
| 76 | |
| 77 | - GPEX and virtio as peripheral devices |
| 78 | |
| 79 | .. include:: cpu-models-mips.rst.inc |
| 80 | |
| 81 | .. _nanoMIPS-System-emulator: |
| 82 | |
| 83 | nanoMIPS System emulator |
| 84 | ~~~~~~~~~~~~~~~~~~~~~~~~ |
| 85 | |
| 86 | Executable ``qemu-system-mipsel`` also covers simulation of 32-bit |
| 87 | nanoMIPS system in little endian mode: |
| 88 | |
| 89 | - nanoMIPS I7200 CPU |
| 90 | |
| 91 | Example of ``qemu-system-mipsel`` usage for nanoMIPS is shown below: |
| 92 | |
| 93 | Download ``<disk_image_file>`` from |
| 94 | https://mipsdistros.mips.com/LinuxDistro/nanomips/buildroot/index.html. |
| 95 | |
| 96 | Download ``<kernel_image_file>`` from |
| 97 | https://mipsdistros.mips.com/LinuxDistro/nanomips/kernels/v4.15.18-432-gb2eb9a8b07a1-20180627102142/index.html. |
| 98 | |
| 99 | Start system emulation of Malta board with nanoMIPS I7200 CPU:: |
| 100 | |
| 101 | qemu-system-mipsel -cpu I7200 -kernel <kernel_image_file> \ |
| 102 | -M malta -serial stdio -m <memory_size> -drive file=<disk_image_file>,format=raw \ |
| 103 | -append "mem=256m@0x0 rw console=ttyS0 vga=cirrus vesa=0x111 root=/dev/sda" |