- add 0001-Bug-385411-s390x-Add-z13-vector-floating-point-suppo.patch

0001-Bug-385411-s390x-Tests-and-internals-for-z13-vector-.patch
  0001-Bug-399444-s390x-Drop-unnecessary-check-in-s390_irge.patch
  0001-Bug-403552-s390x-Fix-vector-facility-bit-number.patch (bsc#1124111)

OBS-URL: https://build.opensuse.org/package/show/devel:tools/valgrind?expand=0&rev=194
This commit is contained in:
Dirk Mueller 2019-02-19 22:02:58 +00:00 committed by Git OBS Bridge
parent c038e53e4b
commit 4168e84d97
6 changed files with 4069 additions and 0 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,42 @@
From ca2f73592e8e74a5328df0a65e0831bc1fc6dd28 Mon Sep 17 00:00:00 2001
From: Andreas Arnez <arnez@linux.ibm.com>
Date: Tue, 9 Oct 2018 11:22:27 +0200
Subject: [PATCH] Bug 399444 s390x: Drop unnecessary check in s390_irgen_VSLDB
In s390_irgen_VSLDB there was special handling for the case that the
immediate operand i4 has the value 16, which would mean that the result v1
were a full copy of the third operand v3. However, this is impossible
because i4 can only assume values from 0 to 15; thus the special handling
can be removed.
---
VEX/priv/guest_s390_toIR.c | 13 ++++---------
1 file changed, 4 insertions(+), 9 deletions(-)
diff --git a/VEX/priv/guest_s390_toIR.c b/VEX/priv/guest_s390_toIR.c
index c594ad51b..60b608138 100644
--- a/VEX/priv/guest_s390_toIR.c
+++ b/VEX/priv/guest_s390_toIR.c
@@ -17400,16 +17400,11 @@ s390_irgen_VSLDB(UChar v1, UChar v2, UChar v3, UChar i4)
{
UChar imm = i4 & 0b00001111;
- if (imm == 0)
- {
+ if (imm == 0) {
+ /* Just copy v2. */
put_vr_qw(v1, get_vr_qw(v2));
- }
- else if (imm == 16)
- {
- put_vr_qw(v1, get_vr_qw(v3));
- }
- else
- {
+ } else {
+ /* Concatenate v2's tail with v3's head. */
put_vr_qw(v1,
binop(Iop_OrV128,
binop(Iop_ShlV128, get_vr_qw(v2), mkU8(imm * 8)),
--
2.20.1

View File

@ -0,0 +1,46 @@
From 467c7c4c9665c0f8b41a4416722a027ebc05df2b Mon Sep 17 00:00:00 2001
From: Andreas Arnez <arnez@linux.ibm.com>
Date: Mon, 21 Jan 2019 14:10:00 +0100
Subject: [PATCH] Bug 403552 s390x: Fix vector facility bit number
The wrong bit number was used when checking for the vector facility. This
can result in a fatal emulation error: "Encountered an instruction that
requires the vector facility. That facility is not available on this
host."
In many cases the wrong facility bit was usually set as well, hence
nothing bad happened. But when running Valgrind within a Qemu/KVM guest,
the wrong bit was not (always?) set and the emulation error occurred.
This fix simply corrects the vector facility bit number, changing it from
128 to 129.
---
NEWS | 1 +
VEX/pub/libvex_s390x_common.h | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
Index: valgrind-3.14.0/NEWS
===================================================================
--- valgrind-3.14.0.orig/NEWS
+++ valgrind-3.14.0/NEWS
@@ -175,6 +175,7 @@ where XXXXXX is the bug number as listed
398028 Assertion `cfsi_fits` failing in simple C program
398066 s390x: cgijl dep1, 0 reports false unitialised values warning
402519 POWER 3.0 addex instruction incorrectly implemented
+403552 s390x: wrong facility bit checked for vector facility
n-i-bz Fix missing workq_ops operations (macOS)
n-i-bz fix bug in strspn replacement
Index: valgrind-3.14.0/VEX/pub/libvex_s390x_common.h
===================================================================
--- valgrind-3.14.0.orig/VEX/pub/libvex_s390x_common.h
+++ valgrind-3.14.0/VEX/pub/libvex_s390x_common.h
@@ -103,7 +103,7 @@
#define S390_FAC_MSA5 57 // message-security-assist 5
#define S390_FAC_TREXE 73 // transactional execution
#define S390_FAC_MSA4 77 // message-security-assist 4
-#define S390_FAC_VX 128 // vector facility
+#define S390_FAC_VX 129 // vector facility
/*--------------------------------------------------------------*/

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Tue Feb 19 21:54:58 UTC 2019 - Dirk Mueller <dmueller@suse.com>
- add 0001-Bug-385411-s390x-Add-z13-vector-floating-point-suppo.patch
0001-Bug-385411-s390x-Tests-and-internals-for-z13-vector-.patch
0001-Bug-399444-s390x-Drop-unnecessary-check-in-s390_irge.patch
0001-Bug-403552-s390x-Fix-vector-facility-bit-number.patch (bsc#1124111)
-------------------------------------------------------------------
Sat Feb 9 08:41:25 UTC 2019 - schwab@suse.de

View File

@ -40,6 +40,10 @@ Patch6: 0001-Bug-400491-s390x-Sign-extend-immediate-operand-of-LO.patch
Patch7: 0001-Bug-397187-s390x-Add-vector-register-support-for-vgd.patch
Patch8: 0001-s390x-more-fixes.patch
Patch9: 0001-Bug-402519-POWER-3.0-addex-instruction-incorrectly-i.patch
Patch10: 0001-Bug-399444-s390x-Drop-unnecessary-check-in-s390_irge.patch
Patch11: 0001-Bug-385411-s390x-Add-z13-vector-floating-point-suppo.patch
Patch12: 0001-Bug-403552-s390x-Fix-vector-facility-bit-number.patch
Patch13: 0001-Bug-385411-s390x-Tests-and-internals-for-z13-vector-.patch
BuildRequires: automake
BuildRequires: docbook-xsl-stylesheets
BuildRequires: docbook_4
@ -153,6 +157,10 @@ but it has been successfully used to optimize several KDE applications.
%patch7 -p1
%patch8 -p1
%patch9 -p1
%patch10 -p1
%patch11 -p1
%patch12 -p1
%patch13 -p1
%build
%if 0%{?suse_version} < 1320