Skip to contentSkip to conversation

tests/tcg/s390x: Test modifying an EXECUTE target

PATCH New Ilya Leoshkevich 1 participant 1 message Oct 1, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/tcg/s390x: Test modifying an EXECUTE target

QEMU correctly implements the tracking of EXECUTE target modifications by storing the instruction text in env->ex_value and tb->cs_base, the latter of which is used for lookups.

Still, EXECUTE is a tricky corner of the s390x emulation, which can benefit from having a regression test.

---
 tests/tcg/s390x/Makefile.target |  1 +
 tests/tcg/s390x/ex-smc.c        | 57 +++++++++++++++++++++++++++++++++
 2 files changed, 58 insertions(+)
 create mode 100644 tests/tcg/s390x/ex-smc.c
tests/tcg/s390x/Makefile.target +1 -0
index a8f86c94498..2dab4f45822 100644
@@ -48,6 +48,7 @@ TESTS+=lae
 TESTS+=cvd
 TESTS+=cvb
 TESTS+=ts
+TESTS+=ex-smc
 
 cdsg: CFLAGS+=-pthread
 cdsg: LDFLAGS+=-pthread
tests/tcg/s390x/ex-smc.c new file +57 -0

57 lines not on this page · raw message

Signature · 1 line
2.46.2