riscv: Add QEMU virt board support
This adds QEMU RISC-V 'virt' board target support, with the hope of helping people easily test U-Boot on RISC-V. The QEMU virt machine models a generic RISC-V virtual machine with support for the VirtIO standard networking and block storage devices. It has CLINT, PLIC, 16550A UART devices in addition to VirtIO and it also uses device-tree to pass configuration information to guest software. It implements RISC-V privileged architecture spec v1.10. Both 32-bit and 64-bit builds are supported. Support is pretty much preliminary, only booting to U-Boot shell with the UART driver on a single core. Booting Linux is not supported yet. Signed-off-by:Bin Meng <bmeng.cn@gmail.com> Reviewed-by:
Lukas Auer <lukas.auer@aisec.fraunhofer.de>
Showing
- arch/riscv/Kconfig 4 additions, 0 deletionsarch/riscv/Kconfig
- arch/riscv/cpu/qemu/Makefile 6 additions, 0 deletionsarch/riscv/cpu/qemu/Makefile
- arch/riscv/cpu/qemu/cpu.c 29 additions, 0 deletionsarch/riscv/cpu/qemu/cpu.c
- arch/riscv/cpu/qemu/dram.c 17 additions, 0 deletionsarch/riscv/cpu/qemu/dram.c
- board/emulation/qemu-riscv/Kconfig 22 additions, 0 deletionsboard/emulation/qemu-riscv/Kconfig
- board/emulation/qemu-riscv/MAINTAINERS 7 additions, 0 deletionsboard/emulation/qemu-riscv/MAINTAINERS
- board/emulation/qemu-riscv/Makefile 5 additions, 0 deletionsboard/emulation/qemu-riscv/Makefile
- board/emulation/qemu-riscv/qemu-riscv.c 23 additions, 0 deletionsboard/emulation/qemu-riscv/qemu-riscv.c
- configs/qemu-riscv32_defconfig 6 additions, 0 deletionsconfigs/qemu-riscv32_defconfig
- configs/qemu-riscv64_defconfig 7 additions, 0 deletionsconfigs/qemu-riscv64_defconfig
- doc/README.qemu-riscv 46 additions, 0 deletionsdoc/README.qemu-riscv
- include/configs/qemu-riscv.h 21 additions, 0 deletionsinclude/configs/qemu-riscv.h
Loading
Please register or sign in to comment