Skip to content
Snippets Groups Projects
Commit 7e018385 authored by Paolo Bonzini's avatar Paolo Bonzini
Browse files

linuxboot_dma: compile for i486


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: default avatarRichard W.M. Jones <rjones@redhat.com>
Suggested-by: default avatarThomas Huth <thuth@redhat.com>
Reported-by: default avatarRob Landley <rob@landley.net>
Cc: qemu-stable@nongnu.org
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent e2b6c171
No related branches found
No related tags found
No related merge requests found
No preview for this file type
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment