]> git.ipfire.org Git - thirdparty/valgrind.git/commit
s390x: Implement conditional trap instructions
authorAndreas Arnez <arnez@linux.vnet.ibm.com>
Wed, 25 Jul 2018 12:23:02 +0000 (14:23 +0200)
committerAndreas Arnez <arnez@linux.ibm.com>
Mon, 24 Sep 2018 14:06:19 +0000 (16:06 +0200)
commit20976f432dc5e4e2218d0fcd18ed4771d67a6d37
tree4094cfdba27c9bdf06f53da8b06517b2b4d73f35
parentfdc275808c35888a5baef9f7232fd12f10052ef4
s390x: Implement conditional trap instructions

This implements various z/Architecture instructions that conditionally
yield a data exception ("trap").  The condition is either based on a
comparison being true ("compare and trap") or on a loaded value being
zero ("load and trap").  These instructions haven't been widely used in
the past, but may now be emitted by newer compilers.  Note that the
resulting signal for a data exception is SIGFPE, not SIGTRAP.  Thus this
patch also adds a new jump kind Ijk_SigFPE.
14 files changed:
.gitignore
VEX/priv/guest_s390_toIR.c
VEX/priv/host_s390_defs.c
VEX/priv/host_s390_isel.c
VEX/pub/libvex_ir.h
VEX/pub/libvex_trc_values.h
coregrind/m_scheduler/scheduler.c
coregrind/m_signals.c
docs/internals/s390-opcodes.csv
none/tests/s390x/Makefile.am
none/tests/s390x/traps.c [new file with mode: 0644]
none/tests/s390x/traps.stderr.exp [new file with mode: 0644]
none/tests/s390x/traps.stdout.exp [new file with mode: 0644]
none/tests/s390x/traps.vgtest [new file with mode: 0644]