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 per \ 29 precise-smc-softmmu \ 30 ssm-early \ 31 stosm-early \ 32 stpq \ 33 unaligned-lowcore 34 35include $(S390X_SRC)/pgm-specification.mak 36$(PGM_SPECIFICATION_TESTS): pgm-specification-softmmu.o 37$(PGM_SPECIFICATION_TESTS): LDFLAGS+=pgm-specification-softmmu.o 38ASM_TESTS += $(PGM_SPECIFICATION_TESTS) 39 40$(ASM_TESTS): LDFLAGS += -Wl,-T$(LINK_SCRIPT) -Wl,--build-id=none 41$(ASM_TESTS): $(LINK_SCRIPT) 42TESTS += $(ASM_TESTS) 43 44S390X_MULTIARCH_RUNTIME_OBJS = head64.o console.o $(MINILIB_OBJS) 45$(MULTIARCH_TESTS): $(S390X_MULTIARCH_RUNTIME_OBJS) 46$(MULTIARCH_TESTS): LDFLAGS += $(S390X_MULTIARCH_RUNTIME_OBJS) 47$(MULTIARCH_TESTS): CFLAGS += $(MINILIB_INC) 48memory: CFLAGS += -DCHECK_UNALIGNED=0 49