]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Bug 470132 - s390x: Fix the wrap-around case in VGM
authorAndreas Arnez <arnez@linux.ibm.com>
Mon, 22 May 2023 16:57:35 +0000 (18:57 +0200)
committerAndreas Arnez <arnez@linux.ibm.com>
Thu, 6 Jul 2023 15:15:08 +0000 (17:15 +0200)
commit6635fc58345ba2c36589f0bef4d326166e947023
treeddb9b414b1414007fb8ab18c94e36e1f3e757838
parent73ec73ed7fe20ec6427dba63e52534136f3c19bd
Bug 470132 - s390x: Fix the wrap-around case in VGM

Valgrind's implementation of VGM is incomplete:

* It doesn't support generating a wrap-around bit mask.  Such a mask
  should result when the ending bit position is smaller than the starting
  bit position.  Valgrind runs into an assertion failure instead.

* It doesn't ignore unused bits in the I2 and I3 fields of the
  instruction, as it should.

Fix this by re-implementing the main logic in s390_irgen_VGM().
NEWS
VEX/priv/guest_s390_toIR.c