Skip to content

Commit

Permalink
linuxboot_dma: compile for i486
Browse files Browse the repository at this point in the history
The ROM uses the cmovne instruction, which is new in Pentium Pro and does not
work when running QEMU with "-cpu 486".  Avoid producing that instruction.

Suggested-by: Richard W.M. Jones <rjones@redhat.com>
Suggested-by: Thomas Huth <thuth@redhat.com>
Reported-by: Rob Landley <rob@landley.net>
Cc: qemu-stable@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
  • Loading branch information
bonzini committed Jun 7, 2017
1 parent e2b6c17 commit 7e01838
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 0 deletions.
Binary file modified pc-bios/linuxboot_dma.bin
Binary file not shown.
1 change: 1 addition & 0 deletions pc-bios/optionrom/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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=i486

# Drop -fstack-protector and the like
QEMU_CFLAGS := $(filter -W%, $(QEMU_CFLAGS)) $(CFLAGS_NOPIE) -ffreestanding
Expand Down

0 comments on commit 7e01838

Please sign in to comment.