diff options
author | Bin Meng <bmeng.cn@gmail.com> | 2019-08-16 06:09:35 -0700 |
---|---|---|
committer | Palmer Dabbelt <palmer@sifive.com> | 2019-09-17 08:42:43 -0700 |
commit | 751f8f41331951077f3fc17dd245c23b5a18b595 (patch) | |
tree | 99b79d18f938234ac3fab357dd681e9fd1d9d9b7 /include | |
parent | ddf781322820b6ea174fbe43ddc6a95e8cac8051 (diff) | |
download | qemu-751f8f41331951077f3fc17dd245c23b5a18b595.zip qemu-751f8f41331951077f3fc17dd245c23b5a18b595.tar.gz qemu-751f8f41331951077f3fc17dd245c23b5a18b595.tar.bz2 |
riscv: Add a helper routine for finding firmware
This adds a helper routine for finding firmware. It is currently
used only for "-bios default" case.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/hw/riscv/boot.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/riscv/boot.h b/include/hw/riscv/boot.h index 1f21c2b..66075d0 100644 --- a/include/hw/riscv/boot.h +++ b/include/hw/riscv/boot.h @@ -25,6 +25,7 @@ void riscv_find_and_load_firmware(MachineState *machine, const char *default_machine_firmware, hwaddr firmware_load_addr); +char *riscv_find_firmware(const char *firmware_filename); target_ulong riscv_load_firmware(const char *firmware_filename, hwaddr firmware_load_addr); target_ulong riscv_load_kernel(const char *kernel_filename); |