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 exrl-ssm-early \ 20 sam \ 21 lpsw \ 22 lpswe-early \ 23 ssm-early \ 24 stosm-early \ 25 unaligned-lowcore 26 27include $(S390X_SRC)/pgm-specification.mak 28$(PGM_SPECIFICATION_TESTS): pgm-specification-softmmu.o 29$(PGM_SPECIFICATION_TESTS): LDFLAGS+=pgm-specification-softmmu.o 30ASM_TESTS += $(PGM_SPECIFICATION_TESTS) 31 32$(ASM_TESTS): LDFLAGS += -Wl,-T$(LINK_SCRIPT) -Wl,--build-id=none 33$(ASM_TESTS): $(LINK_SCRIPT) 34TESTS += $(ASM_TESTS) 35 36S390X_MULTIARCH_RUNTIME_OBJS = head64.o console.o $(MINILIB_OBJS) 37$(MULTIARCH_TESTS): $(S390X_MULTIARCH_RUNTIME_OBJS) 38$(MULTIARCH_TESTS): LDFLAGS += $(S390X_MULTIARCH_RUNTIME_OBJS) 39$(MULTIARCH_TESTS): CFLAGS += $(MINILIB_INC) 40memory: CFLAGS += -DCHECK_UNALIGNED=0 41