[PATCH v3 0/3] Improve RISC-V spike machine bios support

Anup Patel posted 3 patches 2 years, 3 months ago
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20220120115656.31686-1-apatel@ventanamicro.com
Maintainers: Paolo Bonzini <pbonzini@redhat.com>, Palmer Dabbelt <palmer@dabbelt.com>, Thomas Huth <thuth@redhat.com>, Alistair Francis <alistair.francis@wdc.com>, "Alex Bennée" <alex.bennee@linaro.org>, Bin Meng <bin.meng@windriver.com>, "Philippe Mathieu-Daudé" <f4bug@amsat.org>, Bin Meng <bmeng.cn@gmail.com>, Beraldo Leal <bleal@redhat.com>, "Marc-André Lureau" <marcandre.lureau@redhat.com>, Wainer dos Santos Moschetta <wainersm@redhat.com>
.gitlab-ci.d/opensbi.yml                      |   2 -
hw/char/riscv_htif.c                          |  33 ++++++++-----
hw/riscv/spike.c                              |  45 +++++++++++-------
include/hw/char/riscv_htif.h                  |   5 +-
include/hw/riscv/boot.h                       |   2 -
include/hw/riscv/spike.h                      |   1 +
pc-bios/meson.build                           |   2 -
.../opensbi-riscv32-generic-fw_dynamic.elf    | Bin 838904 -> 0 bytes
.../opensbi-riscv64-generic-fw_dynamic.elf    | Bin 934696 -> 0 bytes
roms/Makefile                                 |   2 -
10 files changed, 54 insertions(+), 38 deletions(-)
delete mode 100644 pc-bios/opensbi-riscv32-generic-fw_dynamic.elf
delete mode 100644 pc-bios/opensbi-riscv64-generic-fw_dynamic.elf
[PATCH v3 0/3] Improve RISC-V spike machine bios support
Posted by Anup Patel 2 years, 3 months ago
This series aims at improving RISC-V spike machine BIOS support by allowing
use of binary firmware as bios. Further, this also allows us to totally
remove the ELF bios images shipped with QEMU RISC-V.

These patches can also be found in riscv_spike_imp_v3 branch at:
https://github.com/avpatel/qemu.git

Changes since v2:
 - Remove ELF file names from .gitlab-ci.d/opensbi.yml in PATCH3

Changes since v1:
 - Use htif_uses_elf_symbols() in htif_mm_init() for PATCH1
 - Added PATCH2 and PATCH3 to remove ELF bios images

Anup Patel (3):
  hw/riscv: spike: Allow using binary firmware as bios
  hw/riscv: Remove macros for ELF BIOS image names
  roms/opensbi: Remove ELF images

 .gitlab-ci.d/opensbi.yml                      |   2 -
 hw/char/riscv_htif.c                          |  33 ++++++++-----
 hw/riscv/spike.c                              |  45 +++++++++++-------
 include/hw/char/riscv_htif.h                  |   5 +-
 include/hw/riscv/boot.h                       |   2 -
 include/hw/riscv/spike.h                      |   1 +
 pc-bios/meson.build                           |   2 -
 .../opensbi-riscv32-generic-fw_dynamic.elf    | Bin 838904 -> 0 bytes
 .../opensbi-riscv64-generic-fw_dynamic.elf    | Bin 934696 -> 0 bytes
 roms/Makefile                                 |   2 -
 10 files changed, 54 insertions(+), 38 deletions(-)
 delete mode 100644 pc-bios/opensbi-riscv32-generic-fw_dynamic.elf
 delete mode 100644 pc-bios/opensbi-riscv64-generic-fw_dynamic.elf

-- 
2.25.1


Re: [PATCH v3 0/3] Improve RISC-V spike machine bios support
Posted by Alistair Francis 2 years, 2 months ago
On Fri, Jan 21, 2022 at 1:49 AM Anup Patel <apatel@ventanamicro.com> wrote:
>
> This series aims at improving RISC-V spike machine BIOS support by allowing
> use of binary firmware as bios. Further, this also allows us to totally
> remove the ELF bios images shipped with QEMU RISC-V.
>
> These patches can also be found in riscv_spike_imp_v3 branch at:
> https://github.com/avpatel/qemu.git
>
> Changes since v2:
>  - Remove ELF file names from .gitlab-ci.d/opensbi.yml in PATCH3
>
> Changes since v1:
>  - Use htif_uses_elf_symbols() in htif_mm_init() for PATCH1
>  - Added PATCH2 and PATCH3 to remove ELF bios images
>
> Anup Patel (3):
>   hw/riscv: spike: Allow using binary firmware as bios
>   hw/riscv: Remove macros for ELF BIOS image names
>   roms/opensbi: Remove ELF images

Thanks!

Applied to riscv-to-apply.next

Alistair

>
>  .gitlab-ci.d/opensbi.yml                      |   2 -
>  hw/char/riscv_htif.c                          |  33 ++++++++-----
>  hw/riscv/spike.c                              |  45 +++++++++++-------
>  include/hw/char/riscv_htif.h                  |   5 +-
>  include/hw/riscv/boot.h                       |   2 -
>  include/hw/riscv/spike.h                      |   1 +
>  pc-bios/meson.build                           |   2 -
>  .../opensbi-riscv32-generic-fw_dynamic.elf    | Bin 838904 -> 0 bytes
>  .../opensbi-riscv64-generic-fw_dynamic.elf    | Bin 934696 -> 0 bytes
>  roms/Makefile                                 |   2 -
>  10 files changed, 54 insertions(+), 38 deletions(-)
>  delete mode 100644 pc-bios/opensbi-riscv32-generic-fw_dynamic.elf
>  delete mode 100644 pc-bios/opensbi-riscv64-generic-fw_dynamic.elf
>
> --
> 2.25.1
>
>