[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 1/3] hw/riscv: spike: Allow using binary firmware as bios
From: |
Bin Meng |
Subject: |
Re: [PATCH v2 1/3] hw/riscv: spike: Allow using binary firmware as bios |
Date: |
Wed, 19 Jan 2022 14:55:54 +0800 |
On Tue, Jan 18, 2022 at 7:18 PM Anup Patel <apatel@ventanamicro.com> wrote:
>
> 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>
> ---
> hw/char/riscv_htif.c | 33 +++++++++++++++++++----------
> hw/riscv/spike.c | 41 ++++++++++++++++++++++--------------
> include/hw/char/riscv_htif.h | 5 ++++-
> include/hw/riscv/spike.h | 1 +
> 4 files changed, 52 insertions(+), 28 deletions(-)
>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>