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