OSDN Git Service

hw/riscv: spike: Allow using binary firmware as bios
authorAnup Patel <apatel@ventanamicro.com>
Thu, 13 Jan 2022 14:50:39 +0000 (20:20 +0530)
committerAlistair Francis <alistair.francis@wdc.com>
Fri, 21 Jan 2022 05:52:56 +0000 (15:52 +1000)
commit8d8897accb1c9b28267b3c7eb402b6bc5d967f7e
tree091e78efb21fa883ba41f91c1d4781c9dc279fce
parent2fc1b44dd0e7ea9ad5920352fd04179e4d6836d9
hw/riscv: spike: Allow using binary firmware as bios

Currently, we have to use OpenSBI firmware ELF as bios for the spike
machine because the HTIF console requires ELF for parsing "fromhost"
and "tohost" symbols.

The latest OpenSBI can now optionally pick-up HTIF register address
from HTIF DT node so using this feature spike machine can now use
OpenSBI firmware BIN as bios.

Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
hw/char/riscv_htif.c
hw/riscv/spike.c
include/hw/char/riscv_htif.h
include/hw/riscv/spike.h