2021-08-05 00:51:46 +02:00
|
|
|
S390X_SRC=$(SRC_PATH)/tests/tcg/s390x
|
|
|
|
VPATH+=$(S390X_SRC)
|
2018-08-21 04:50:58 +02:00
|
|
|
CFLAGS+=-march=zEC12 -m64
|
|
|
|
TESTS+=hello-s390x
|
target/s390x: fix CSST decoding and runtime alignment check
CSST is defined as:
C(0xc802, CSST, SSF, CASS, la1, a2, 0, 0, csst, 0)
It means that the first parameter is handled by in1_la1().
in1_la1() fills addr1 field, and not in1.
Furthermore, when extract32() is used for the alignment check, the
third parameter should specify the number of trailing bits that must
be 0. For FC these numbers are:
FC=0 (word, 4 bytes): 2
FC=1 (double word, 8 bytes): 3
FC=2 (quad word, 16 bytes): 4
For SC these numbers correspond to the size:
SC=0: 0
SC=1: 1
SC=2: 2
SC=3: 3
SC=4: 4
Signed-off-by: Pavel Zbitskiy <pavel.zbitskiy@gmail.com>
Message-Id: <20180821025104.19604-4-pavel.zbitskiy@gmail.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
2018-08-21 04:51:00 +02:00
|
|
|
TESTS+=csst
|
2018-08-21 04:51:01 +02:00
|
|
|
TESTS+=ipm
|
2018-08-21 04:51:02 +02:00
|
|
|
TESTS+=exrl-trt
|
|
|
|
TESTS+=exrl-trtr
|
2018-08-21 04:51:03 +02:00
|
|
|
TESTS+=pack
|
2019-09-05 20:18:51 +02:00
|
|
|
TESTS+=mvo
|
2019-09-19 11:21:48 +02:00
|
|
|
TESTS+=mvc
|
2022-01-12 17:50:16 +01:00
|
|
|
TESTS+=shift
|
2021-07-09 18:04:59 +02:00
|
|
|
TESTS+=trap
|
2021-08-05 00:51:46 +02:00
|
|
|
TESTS+=signals-s390x
|
|
|
|
|
|
|
|
ifneq ($(HAVE_GDB_BIN),)
|
|
|
|
GDB_SCRIPT=$(SRC_PATH)/tests/guest-debug/run-test.py
|
|
|
|
|
|
|
|
run-gdbstub-signals-s390x: signals-s390x
|
|
|
|
$(call run-test, $@, $(GDB_SCRIPT) \
|
|
|
|
--gdb $(HAVE_GDB_BIN) \
|
|
|
|
--qemu $(QEMU) --qargs "$(QEMU_OPTS)" \
|
|
|
|
--bin $< --test $(S390X_SRC)/gdbstub/test-signals-s390x.py, \
|
|
|
|
"mixing signals and debugging on s390x")
|
|
|
|
|
|
|
|
EXTRA_RUNS += run-gdbstub-signals-s390x
|
|
|
|
endif
|