aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlistair Francis <alistair.francis@wdc.com>2019-07-16 11:47:25 -0700
committerPalmer Dabbelt <palmer@sifive.com>2019-07-18 14:18:45 -0700
commitfdd1bda4b47cfbec61d0e63a516c614feea0b00b (patch)
tree267680833fb22c20a1fe9fe02a3a62c9c613ed3a /include
parent91f3a2f0ce59cb621630bd224f634955222fc3e0 (diff)
downloadqemu-fdd1bda4b47cfbec61d0e63a516c614feea0b00b.zip
qemu-fdd1bda4b47cfbec61d0e63a516c614feea0b00b.tar.gz
qemu-fdd1bda4b47cfbec61d0e63a516c614feea0b00b.tar.bz2
hw/riscv: Load OpenSBI as the default firmware
If the user hasn't specified a firmware to load (with -bios) or specified no bios (with -bios none) then load OpenSBI by default. This allows users to boot a RISC-V kernel with just -kernel. Signed-off-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Tested-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Tested-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
Diffstat (limited to 'include')
-rw-r--r--include/hw/riscv/boot.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/hw/riscv/boot.h b/include/hw/riscv/boot.h
index daa179b..d56f2ae 100644
--- a/include/hw/riscv/boot.h
+++ b/include/hw/riscv/boot.h
@@ -20,6 +20,9 @@
#ifndef RISCV_BOOT_H
#define RISCV_BOOT_H
+void riscv_find_and_load_firmware(MachineState *machine,
+ const char *default_machine_firmware,
+ hwaddr firmware_load_addr);
target_ulong riscv_load_firmware(const char *firmware_filename,
hwaddr firmware_load_addr);
target_ulong riscv_load_kernel(const char *kernel_filename);