boot.c (808faef7cd38222ac02e5876e5170c7d00982876) | boot.c (9d3f7108bc43e93ceef7faa27c87eea8295c33ed) |
---|---|
1/* 2 * QEMU RISC-V Boot Helper 3 * 4 * Copyright (c) 2017 SiFive, Inc. 5 * Copyright (c) 2019 Alistair Francis <alistair.francis@wdc.com> 6 * 7 * This program is free software; you can redistribute it and/or modify it 8 * under the terms and conditions of the GNU General Public License, --- 61 unchanged lines hidden (view full) --- 70 target_ulong firmware_end_addr) { 71 if (riscv_is_32bit(harts)) { 72 return QEMU_ALIGN_UP(firmware_end_addr, 4 * MiB); 73 } else { 74 return QEMU_ALIGN_UP(firmware_end_addr, 2 * MiB); 75 } 76} 77 | 1/* 2 * QEMU RISC-V Boot Helper 3 * 4 * Copyright (c) 2017 SiFive, Inc. 5 * Copyright (c) 2019 Alistair Francis <alistair.francis@wdc.com> 6 * 7 * This program is free software; you can redistribute it and/or modify it 8 * under the terms and conditions of the GNU General Public License, --- 61 unchanged lines hidden (view full) --- 70 target_ulong firmware_end_addr) { 71 if (riscv_is_32bit(harts)) { 72 return QEMU_ALIGN_UP(firmware_end_addr, 4 * MiB); 73 } else { 74 return QEMU_ALIGN_UP(firmware_end_addr, 2 * MiB); 75 } 76} 77 |
78const char *riscv_default_firmware_name(RISCVHartArrayState *harts) 79{ 80 if (riscv_is_32bit(harts)) { 81 return RISCV32_BIOS_BIN; 82 } 83 84 return RISCV64_BIOS_BIN; 85} 86 |
|
78static char *riscv_find_firmware(const char *firmware_filename) 79{ 80 char *filename; 81 82 filename = qemu_find_file(QEMU_FILE_TYPE_BIOS, firmware_filename); 83 if (filename == NULL) { 84 if (!qtest_enabled()) { 85 /* --- 287 unchanged lines hidden --- | 87static char *riscv_find_firmware(const char *firmware_filename) 88{ 89 char *filename; 90 91 filename = qemu_find_file(QEMU_FILE_TYPE_BIOS, firmware_filename); 92 if (filename == NULL) { 93 if (!qtest_enabled()) { 94 /* --- 287 unchanged lines hidden --- |