Received: from eggs.gnu.org ([2001:4830:134:3::10]:60865) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dkZNR-0005ew-HR for qemu-devel@nongnu.org; Wed, 23 Aug 2017 13:23:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dkZNQ-0001Yf-O1 for qemu-devel@nongnu.org; Wed, 23 Aug 2017 13:23:37 -0400 Received: from mail-pf0-x243.google.com ([2607:f8b0:400e:c00::243]:36364) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dkZNQ-0001Xk-HG for qemu-devel@nongnu.org; Wed, 23 Aug 2017 13:23:36 -0400 Received: by mail-pf0-x243.google.com with SMTP id x76so106462pfa.3 for ; Wed, 23 Aug 2017 10:23:35 -0700 (PDT) From: Anatol Pomozov Date: Wed, 23 Aug 2017 10:22:56 -0700 Message-Id: <20170823172257.48011-2-anatol.pomozov@gmail.com> In-Reply-To: <20170823172257.48011-1-anatol.pomozov@gmail.com> References: <20170823172257.48011-1-anatol.pomozov@gmail.com> Subject: [Qemu-devel] [PATCH 2/3] multiboot: load any machine type of ELF List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, Anatol Pomozov x86 is not the only architecture supported by multiboot. For example GRUB supports MIPS architecture as well. Signed-off-by: Anatol Pomozov --- 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.342.g6490525c54-goog