riscv: Add QEMU virt board support
authorBin Meng <bmeng.cn@gmail.com>
Wed, 26 Sep 2018 13:55:21 +0000 (06:55 -0700)
committerAndes <uboot@andestech.com>
Wed, 3 Oct 2018 09:48:37 +0000 (17:48 +0800)
commit510e379c49ba8e0d90960d8cbc2ffb91091e229a
treeb0309877c972fa382c033802d72e2feb6976a353
parentcd1f45c21d7e152eba000bf7c2168aaff800ed37
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>
12 files changed:
arch/riscv/Kconfig
arch/riscv/cpu/qemu/Makefile [new file with mode: 0644]
arch/riscv/cpu/qemu/cpu.c [new file with mode: 0644]
arch/riscv/cpu/qemu/dram.c [new file with mode: 0644]
board/emulation/qemu-riscv/Kconfig [new file with mode: 0644]
board/emulation/qemu-riscv/MAINTAINERS [new file with mode: 0644]
board/emulation/qemu-riscv/Makefile [new file with mode: 0644]
board/emulation/qemu-riscv/qemu-riscv.c [new file with mode: 0644]
configs/qemu-riscv32_defconfig [new file with mode: 0644]
configs/qemu-riscv64_defconfig [new file with mode: 0644]
doc/README.qemu-riscv [new file with mode: 0644]
include/configs/qemu-riscv.h [new file with mode: 0644]