[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 2/3] multiboot: load any machine type of ELF
From: |
Anatol Pomozov |
Subject: |
[Qemu-devel] [PATCH 2/3] multiboot: load any machine type of ELF |
Date: |
Thu, 17 Aug 2017 15:50:38 -0700 |
x86 is not the only architecture supported by multiboot.
For example GRUB supports MIPS architecture as well.
Signed-off-by: Anatol Pomozov <address@hidden>
---
hw/i386/multiboot.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/i386/multiboot.c b/hw/i386/multiboot.c
index 19113c0fce..a49217ac62 100644
--- a/hw/i386/multiboot.c
+++ b/hw/i386/multiboot.c
@@ -173,7 +173,7 @@ int load_multiboot(FWCfgState *fw_cfg,
}
kernel_size = load_elf(kernel_filename, NULL, NULL, &elf_entry,
- &elf_low, &elf_high, 0, I386_ELF_MACHINE,
+ &elf_low, &elf_high, 0, EM_NONE,
0, 0);
if (kernel_size < 0) {
fprintf(stderr, "Error while loading elf kernel\n");
--
2.14.1.480.gb18f417b89-goog