diff options
author | Bin Meng | 2021-04-30 09:13:01 +0200 |
---|---|---|
committer | Alistair Francis | 2021-06-08 01:59:42 +0200 |
commit | a0acd0a175891afe554c907c4ecc941abbd98602 (patch) | |
tree | e23b03a8fce61ea7f0314cd62477a0f441b47548 /include/hw/riscv/boot.h | |
parent | docs/system/riscv: sifive_u: Document '-dtb' usage (diff) | |
download | qemu-a0acd0a175891afe554c907c4ecc941abbd98602.tar.gz qemu-a0acd0a175891afe554c907c4ecc941abbd98602.tar.xz qemu-a0acd0a175891afe554c907c4ecc941abbd98602.zip |
hw/riscv: Use macros for BIOS image names
The OpenSBI BIOS image names are used by many RISC-V machines.
Let's define macros for them.
Signed-off-by: Bin Meng <bin.meng@windriver.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-id: 20210430071302.1489082-7-bmeng.cn@gmail.com
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'include/hw/riscv/boot.h')
-rw-r--r-- | include/hw/riscv/boot.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/hw/riscv/boot.h b/include/hw/riscv/boot.h index 11a21dd584..0e89400b09 100644 --- a/include/hw/riscv/boot.h +++ b/include/hw/riscv/boot.h @@ -24,6 +24,11 @@ #include "hw/loader.h" #include "hw/riscv/riscv_hart.h" +#define RISCV32_BIOS_BIN "opensbi-riscv32-generic-fw_dynamic.bin" +#define RISCV32_BIOS_ELF "opensbi-riscv32-generic-fw_dynamic.elf" +#define RISCV64_BIOS_BIN "opensbi-riscv64-generic-fw_dynamic.bin" +#define RISCV64_BIOS_ELF "opensbi-riscv64-generic-fw_dynamic.elf" + bool riscv_is_32bit(RISCVHartArrayState *harts); target_ulong riscv_calc_kernel_start_addr(RISCVHartArrayState *harts, |