hw/riscv: Add support for loading a firmware
commitb30422231b90c089ce73aa4b40461bfdc1be0371
authorAlistair Francis <alistair.francis@wdc.com>
Mon, 24 Jun 2019 22:11:52 +0000 (24 15:11 -0700)
committerPalmer Dabbelt <palmer@sifive.com>
Thu, 27 Jun 2019 09:47:06 +0000 (27 02:47 -0700)
tree1ec04199f6c7fce8f1f5b66e8ff467fdecd4f309
parent0ac24d56c5e7d32423ea78ac58a06b444d1df04d
hw/riscv: Add support for loading a firmware

Add support for loading a firmware file for the virt machine and the
SiFive U. This can be run with the following command:

    qemu-system-riscv64 -machine virt -bios fw_jump.bin -kernel vmlinux

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
hw/riscv/boot.c
hw/riscv/sifive_u.c
hw/riscv/virt.c
include/hw/riscv/boot.h