mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
RISC-V: Remove EM_RISCV ELF_MACHINE indirection
Pointless indirection. Other ports use EM_ constants directly. Cc: Sagar Karandikar <sagark@eecs.berkeley.edu> Cc: Bastian Koppelmann <kbastian@mail.uni-paderborn.de> Signed-off-by: Michael Clark <mjc@sifive.com> Signed-off-by: Palmer Dabbelt <palmer@sifive.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
This commit is contained in:
parent
5b5583806b
commit
89854803ce
5 changed files with 4 additions and 5 deletions
|
@ -74,7 +74,7 @@ static uint64_t load_kernel(const char *kernel_filename)
|
|||
|
||||
if (load_elf(kernel_filename, NULL, NULL,
|
||||
&kernel_entry, NULL, &kernel_high,
|
||||
0, ELF_MACHINE, 1, 0) < 0) {
|
||||
0, EM_RISCV, 1, 0) < 0) {
|
||||
error_report("qemu: could not load kernel '%s'", kernel_filename);
|
||||
exit(1);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue