1 # i386 cross compile notes
3 I386_SRC=$(SRC_PATH)/tests/tcg/i386
5 # Set search path for all sources
8 I386_SRCS=$(notdir $(wildcard $(I386_SRC)/*.c))
9 ALL_X86_TESTS=$(I386_SRCS:.c=)
10 I386_TESTS:=$(filter-out test-i386-ssse3, $(ALL_X86_TESTS))
11 X86_64_TESTS:=$(filter test-i386-ssse3, $(ALL_X86_TESTS))
13 TESTS=$(MULTIARCH_TESTS) $(I386_TESTS)
16 # hello-i386 is a barebones app
18 hello-i386: CFLAGS+=-ffreestanding
19 hello-i386: LDFLAGS+=-nostdlib
22 # test-386 includes a couple of additional objects that need to be linked together
25 test-i386: test-i386.c test-i386-code16.S test-i386-vm86.S test-i386.h test-i386-shift.h test-i386-muldiv.h
26 $(CC) $(CFLAGS) $(LDFLAGS) $(EXTRA_CFLAGS) -o $@ \
27 $(<D)/test-i386.c $(<D)/test-i386-code16.S $(<D)/test-i386-vm86.S -lm
31 test-i386-fprem.ref: test-i386-fprem
32 $(call quiet-command, ./$< > $@,"GENREF","generating $@")
34 run-test-i386-fprem: TIMEOUT=60
35 run-test-i386-fprem: test-i386-fprem test-i386-fprem.ref
36 $(call run-test,test-i386-fprem, $(QEMU) $<,"$< on $(TARGET_NAME)")
37 $(call diff-out,test-i386-fprem, test-i386-fprem.ref)
39 run-test-i386-fprem: test-i386-fprem
40 $(call skip-test, $<, "SLOW")
43 # On i386 and x86_64 Linux only supports 4k pages (large pages are a different hack)
44 EXTRA_RUNS+=run-test-mmap-4096