Am 14.10.2017 um 15:41 hat Peter Maydell geschrieben: > On 14 October 2017 at 00:21, Eduardo Habkost <ehabk...@redhat.com> wrote: > > I don't believe the spec restricts that, but I don't see why it > > would be useful to load an ELF file that doesn't match the target > > architecture (e.g. loading non-x86 ELF files on a x86 machine > > like PC). > > Agreed. If we have non i386 boards that want to use multiboot > we should probably move the common code out of hw/i386...
Impossible with Multiboot 1, it's a spec that is really made for i386. The spec isn't really explicit about it being a requirement, but it does say that its target are 32-bit OSes on PCs, and it defines the boot state in terms of i386 registers, so it doesn't make sense for non-x86. >From my interpretation of the spec, even support for 64-bit ELFs seems to be (implicitly) out of spec (there is one place where it even says "refer to the i386 ELF documentation for details"), but if GRUB implements it... Kevin