[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 4/5] riscv/spike: Change the default bios to use generic platform
From: |
Bin Meng |
Subject: |
[PATCH 4/5] riscv/spike: Change the default bios to use generic platform image |
Date: |
Fri, 1 May 2020 08:50:53 -0700 |
From: Bin Meng <address@hidden>
To keep sync with other RISC-V machines, change the default bios
to use generic platform image.
While we are here, add some comments to mention that keeping ELF
files here was intentional.
Signed-off-by: Bin Meng <address@hidden>
---
hw/riscv/spike.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/hw/riscv/spike.c b/hw/riscv/spike.c
index d0c4843..6f26fcf 100644
--- a/hw/riscv/spike.c
+++ b/hw/riscv/spike.c
@@ -45,10 +45,15 @@
#include <libfdt.h>
+/*
+ * Not like other RISC-V machines that use plain binary bios images,
+ * keeping ELF files here was intentional because BIN files don't work
+ * for the Spike machine as HTIF emulation depends on ELF parsing.
+ */
#if defined(TARGET_RISCV32)
-# define BIOS_FILENAME "opensbi-riscv32-spike-fw_jump.elf"
+# define BIOS_FILENAME "opensbi-riscv32-generic-fw_jump.elf"
#else
-# define BIOS_FILENAME "opensbi-riscv64-spike-fw_jump.elf"
+# define BIOS_FILENAME "opensbi-riscv64-generic-fw_jump.elf"
#endif
static const struct MemmapEntry {
--
2.7.4
- Re: [PATCH 2/5] gitlab-ci/opensbi: Update GitLab CI to build generic platform, (continued)
- [PATCH 1/5] roms/opensbi: Update to support building bios images for generic platform, Bin Meng, 2020/05/01
- Re: [PATCH 1/5] roms/opensbi: Update to support building bios images for generic platform, Anup Patel, 2020/05/03
- Re: [PATCH 1/5] roms/opensbi: Update to support building bios images for generic platform, Bin Meng, 2020/05/04
- Re: [PATCH 1/5] roms/opensbi: Update to support building bios images for generic platform, Anup Patel, 2020/05/04
- Re: [PATCH 1/5] roms/opensbi: Update to support building bios images for generic platform, Bin Meng, 2020/05/04
- Re: [PATCH 1/5] roms/opensbi: Update to support building bios images for generic platform, Bin Meng, 2020/05/04
- Re: [PATCH 1/5] roms/opensbi: Update to support building bios images for generic platform, Anup Patel, 2020/05/04
- Re: [PATCH 1/5] roms/opensbi: Update to support building bios images for generic platform, Alistair Francis, 2020/05/04
- Re: [PATCH 1/5] roms/opensbi: Update to support building bios images for generic platform, Bin Meng, 2020/05/06
[PATCH 4/5] riscv/spike: Change the default bios to use generic platform image,
Bin Meng <=