Commit b2a575a1c652 broke i486 support.
You can't boot a kernel under -cpu 486 since that commit (hangs producing no output) because it added a bios image that won't run on anything short of pentium II.
You can try the run-emulator.sh script in
http://landley.net/aboriginal/downloads/binaries/system-image-i486.tar.gz
before and after that commit to check for yourself.
Rob
Quoted 7 lines · Rob Landley
You can't boot a kernel under -cpu 486 since that commit (hangs producing no output) because it added a bios image that won't run on anything short of pentium II.
You can try the
run-emulator.shscript in
http://landley.net/aboriginal/downloads/binaries/system-image-i486.tar.gz
before and after that commit to check for yourself.
Hi Rob,
thanks for the bug report ... but to make sure that your mail does not get lost in the high traffic of the qemu-devel mailing list, it might be a good idea to CC: the people from that commit b2a575a1c652 in this case (which I've done now).
Thomas
Quoted 9 lines · Thomas Huth
Quoted 7 lines · Rob Landley
You can't boot a kernel under -cpu 486 since that commit (hangs producing no output) because it added a bios image that won't run on anything short of pentium II.
You can try the
run-emulator.shscript in
http://landley.net/aboriginal/downloads/binaries/system-image-i486.tar.gz
before and after that commit to check for yourself.
Quoted 6 lines
Hi Rob,
thanks for the bug report ... but to make sure that your mail does not get lost in the high traffic of the qemu-devel mailing list, it might be a good idea to CC: the people from that commit
b2a575a1c652in this case (which I've done now).
I see in the disassembly use of cmovne (new in Pentium Pro) and bswap (new in 486).
[http://cse.unl.edu/~goddard/Courses/CSCE351/IntelArchitecture/InstructionSetSummary.pdf]
The cmovne instruction is generated by the compiler (GCC in my case),
The following patch removes the cmovne instruction, so it should work on 486 (although I didn't test it). It's not possible to remove bswap without surgery on the inline assembler.
pc-bios/optionrom/Makefile +1 -0
@@ -13,6 +13,7 @@ $(call set-vpath, $(SRC_PATH)/pc-bios/optionrom) ifeq ($(lastword $(filter -O%, -O0 $(CFLAGS))),-O0) override CFLAGS += -O2 endif +override CFLAGS += -march=i386 # Drop -fstack-protector and the like QEMU_CFLAGS := $(filter -W%, $(QEMU_CFLAGS)) $(CFLAGS_NOPIE) -ffreestanding
Rich.
Signature · 4 lines
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-builder quickly builds VMs from scratch http://libguestfs.org/virt-builder.1.html
Quoted 30 lines · Richard W.M. Jones
Quoted 9 lines · Thomas Huth
Quoted 7 lines · Rob Landley
You can't boot a kernel under -cpu 486 since that commit (hangs producing no output) because it added a bios image that won't run on anything short of pentium II.
You can try the
run-emulator.shscript in
http://landley.net/aboriginal/downloads/binaries/system-image-i486.tar.gz
before and after that commit to check for yourself.Quoted 6 lines
Hi Rob,
thanks for the bug report ... but to make sure that your mail does not get lost in the high traffic of the qemu-devel mailing list, it might be a good idea to CC: the people from that commit
b2a575a1c652in this case (which I've done now).I see in the disassembly use of cmovne (new in Pentium Pro) and bswap (new in 486).
[http://cse.unl.edu/~goddard/Courses/CSCE351/IntelArchitecture/InstructionSetSummary.pdf]The cmovne instruction is generated by the compiler (GCC in my case),
The following patch removes the cmovne instruction, so it should work on 486 (although I didn't test it). It's not possible to remove bswap without surgery on the inline assembler.
pc-bios/optionrom/Makefile $(call set-vpath, $(SRC_PATH)/pc-bios/optionrom) · line 16
Quoted 4 lines
pc-bios/optionrom/Makefile +1
-0@@ -13,6 +13,7 @@ $(call set-vpath, $(SRC_PATH)/pc-bios/optionrom) ifeq ($(lastword $(filter -O%, -O0 $(CFLAGS))),-O0) override CFLAGS += -O2 endif +override CFLAGS += -march=i386
I guess you could also use "-march=i486" here instead, since QEMU does not emulate a 386, as far as I can see.
Thomas
Quoted 9 lines · Richard W.M. Jones
I see in the disassembly use of cmovne (new in Pentium Pro) and bswap (new in 486).
[http://cse.unl.edu/~goddard/Courses/CSCE351/IntelArchitecture/InstructionSetSummary.pdf]The cmovne instruction is generated by the compiler (GCC in my case),
The following patch removes the cmovne instruction, so it should work on 486 (although I didn't test it). It's not possible to remove bswap without surgery on the inline assembler.
Is there any way to make it just _not_ load the option rom for -cpu 486? It ran fine before that thing went in...
Rob
Quoted 5 lines · Rob Landley
Quoted 4 lines · Richard W.M. Jones
I see in the disassembly use of cmovne (new in Pentium Pro) and bswap (new in 486).
[http://cse.unl.edu/~goddard/Courses/CSCE351/IntelArchitecture/InstructionSetSummary.pdf]
Quoted 8 lines
Quoted 5 lines
The cmovne instruction is generated by the compiler (GCC in my case),
The following patch removes the cmovne instruction, so it should work on 486 (although I didn't test it). It's not possible to remove bswap without surgery on the inline assembler.
Is there any way to make it just _not_ load the option rom for -cpu 486? It ran fine before that thing went in...
Looking at that commit b2a575a1c652 that you've mentioned, it seems like you could work-around the problem by disabling DMA for the fw_cfg device. Try something like adding the parameter
-global fw_cfg.dma_enabled=false
to your command line. If that does not help, try to use an older machine type, like "-M pc-i440fx-2.5".
Thomas
Quoted 5 lines · Rob Landley
Quoted 4 lines · Richard W.M. Jones
I see in the disassembly use of cmovne (new in Pentium Pro) and bswap (new in 486).
[http://cse.unl.edu/~goddard/Courses/CSCE351/IntelArchitecture/InstructionSetSummary.pdf]
Quoted 8 lines
Quoted 5 lines
The cmovne instruction is generated by the compiler (GCC in my case),
The following patch removes the cmovne instruction, so it should work on 486 (although I didn't test it). It's not possible to remove bswap without surgery on the inline assembler.
Is there any way to make it just _not_ load the option rom for -cpu 486? It ran fine before that thing went in...
Well it ran, but it was very slow. The DMA method can be literally orders of magnitude faster.
Does adding the flag I suggested help?
Rich.
Signature · 4 lines
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-builder quickly builds VMs from scratch http://libguestfs.org/virt-builder.1.html
Quoted 5 lines · Rob Landley
Quoted 4 lines · Richard W.M. Jones
I see in the disassembly use of cmovne (new in Pentium Pro) and bswap (new in 486).
[http://cse.unl.edu/~goddard/Courses/CSCE351/IntelArchitecture/InstructionSetSummary.pdf]
Quoted 8 lines
Quoted 5 lines
The cmovne instruction is generated by the compiler (GCC in my case),
The following patch removes the cmovne instruction, so it should work on 486 (although I didn't test it). It's not possible to remove bswap without surgery on the inline assembler.
Is there any way to make it just _not_ load the option rom for -cpu 486? It ran fine before that thing went in...
You were loading another option ROM. Thomas's suggested -global invocation will revert to that ROM until we fix it.
Paolo