aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2020-06-16 10:00:01 -0400
committerPaolo Bonzini <pbonzini@redhat.com>2020-06-16 10:00:08 -0400
commit3d4f48f950c2b7ec4610548e1d7dc3cb3ef9c42d (patch)
tree4f626bfdc5042d5f1234c95593a7ecd22d0adef7
parent4b74c718c57d1697e3228e2c699b0fe9c1d24e97 (diff)
downloadkvm-unit-tests-3d4f48f950c2b7ec4610548e1d7dc3cb3ef9c42d.tar.gz
x86: disable SSE on 32-bit hosts
On 64-bit hosts we are disabling SSE and SSE2. Depending on the compiler however it may use movq instructions for 64-bit transfers even when targeting 32-bit processors; when CR4.OSFXSR is not set, this results in an undefined opcode exception, so tell the compiler to avoid those instructions on 32-bit hosts as well. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r--x86/Makefile.i3861
1 files changed, 1 insertions, 0 deletions
diff --git a/x86/Makefile.i386 b/x86/Makefile.i386
index d801b80..be9d6bc 100644
--- a/x86/Makefile.i386
+++ b/x86/Makefile.i386
@@ -1,6 +1,7 @@
cstart.o = $(TEST_DIR)/cstart.o
bits = 32
ldarch = elf32-i386
+COMMON_CFLAGS += -mno-sse -mno-sse2
cflatobjs += lib/x86/setjmp32.o