1S390X_SRC=$(SRC_PATH)/tests/tcg/s390x 2VPATH+=$(S390X_SRC) 3QEMU_OPTS=-action panic=exit-failure -nographic -kernel 4LINK_SCRIPT=$(S390X_SRC)/softmmu.ld 5CFLAGS+=-ggdb -O0 6LDFLAGS=-nostdlib -static 7 8%.o: %.S 9 $(CC) -march=z13 -m64 -c $< -o $@ 10 11%.o: %.c 12 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -march=z13 -m64 -c $< -o $@ 13 14%: %.o 15 $(CC) $< -o $@ $(LDFLAGS) 16 17ASM_TESTS = \ 18 bal \ 19 cksm \ 20 clm \ 21 exrl-ssm-early \ 22 icm \ 23 sam \ 24 lpsw \ 25 lpswe-early \ 26 lra \ 27 mc \ 28 precise-smc-softmmu \ 29 ssm-early \ 30 stosm-early \ 31 stpq \ 32 unaligned-lowcore 33 34include $(S390X_SRC)/pgm-specification.mak 35$(PGM_SPECIFICATION_TESTS): pgm-specification-softmmu.o 36$(PGM_SPECIFICATION_TESTS): LDFLAGS+=pgm-specification-softmmu.o 37ASM_TESTS += $(PGM_SPECIFICATION_TESTS) 38 39$(ASM_TESTS): LDFLAGS += -Wl,-T$(LINK_SCRIPT) -Wl,--build-id=none 40$(ASM_TESTS): $(LINK_SCRIPT) 41TESTS += $(ASM_TESTS) 42 43S390X_MULTIARCH_RUNTIME_OBJS = head64.o console.o $(MINILIB_OBJS) 44$(MULTIARCH_TESTS): $(S390X_MULTIARCH_RUNTIME_OBJS) 45$(MULTIARCH_TESTS): LDFLAGS += $(S390X_MULTIARCH_RUNTIME_OBJS) 46$(MULTIARCH_TESTS): CFLAGS += $(MINILIB_INC) 47memory: CFLAGS += -DCHECK_UNALIGNED=0 48